|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.mapred.AvroJob
public class AvroJob
Setters to configure jobs for Avro data.
Field Summary | |
---|---|
static String |
BINARY_PREFIX
The configuration key prefix for a binary output metadata. |
static String |
INPUT_SCHEMA
The configuration key for a job's input schema. |
static String |
MAP_OUTPUT_SCHEMA
The configuration key for a job's intermediate schema. |
static String |
OUTPUT_SCHEMA
The configuration key for a job's output schema. |
static String |
TEXT_PREFIX
The configuration key prefix for a text output metadata. |
Method Summary | |
---|---|
static Schema |
getInputSchema(Configuration job)
Return a job's map input schema. |
static Schema |
getMapOutputSchema(Configuration job)
Return a job's map output key schema. |
static Schema |
getOutputSchema(Configuration job)
Return a job's output key schema. |
static void |
setCombinerClass(org.apache.hadoop.mapred.JobConf job,
Class<? extends AvroReducer> c)
Configure a job's combiner implementation. |
static void |
setInputSchema(org.apache.hadoop.mapred.JobConf job,
Schema s)
Configure a job's map input schema. |
static void |
setInputSequenceFile(org.apache.hadoop.mapred.JobConf job)
Indicate that a job's input files are in SequenceFile format. |
static void |
setMapOutputSchema(org.apache.hadoop.mapred.JobConf job,
Schema s)
Configure a job's map output schema. |
static void |
setMapperClass(org.apache.hadoop.mapred.JobConf job,
Class<? extends AvroMapper> c)
Configure a job's mapper implementation. |
static void |
setOutputMeta(org.apache.hadoop.mapred.JobConf job,
String key,
byte[] value)
Add metadata to job output files. |
static void |
setOutputMeta(org.apache.hadoop.mapred.JobConf job,
String key,
long value)
Add metadata to job output files. |
static void |
setOutputMeta(org.apache.hadoop.mapred.JobConf job,
String key,
String value)
Add metadata to job output files. |
static void |
setOutputSchema(org.apache.hadoop.mapred.JobConf job,
Schema s)
Configure a job's output schema. |
static void |
setReducerClass(org.apache.hadoop.mapred.JobConf job,
Class<? extends AvroReducer> c)
Configure a job's reducer implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INPUT_SCHEMA
public static final String MAP_OUTPUT_SCHEMA
public static final String OUTPUT_SCHEMA
public static final String TEXT_PREFIX
public static final String BINARY_PREFIX
Method Detail |
---|
public static void setInputSchema(org.apache.hadoop.mapred.JobConf job, Schema s)
public static Schema getInputSchema(Configuration job)
public static void setMapOutputSchema(org.apache.hadoop.mapred.JobConf job, Schema s)
Pair
schema.
public static Schema getMapOutputSchema(Configuration job)
public static void setOutputSchema(org.apache.hadoop.mapred.JobConf job, Schema s)
Pair
schema.
public static void setOutputMeta(org.apache.hadoop.mapred.JobConf job, String key, String value)
public static void setOutputMeta(org.apache.hadoop.mapred.JobConf job, String key, long value)
public static void setOutputMeta(org.apache.hadoop.mapred.JobConf job, String key, byte[] value)
public static void setInputSequenceFile(org.apache.hadoop.mapred.JobConf job)
public static Schema getOutputSchema(Configuration job)
public static void setMapperClass(org.apache.hadoop.mapred.JobConf job, Class<? extends AvroMapper> c)
public static void setCombinerClass(org.apache.hadoop.mapred.JobConf job, Class<? extends AvroReducer> c)
public static void setReducerClass(org.apache.hadoop.mapred.JobConf job, Class<? extends AvroReducer> c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |