public class AvroMultipleInputsUtil
extends java.lang.Object
Constructor and Description |
---|
AvroMultipleInputsUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.Schema |
getInputKeySchemaForSplit(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapreduce.InputSplit split)
Gets the schema for a particular input split.
|
static void |
setInputKeySchemaForPath(org.apache.hadoop.mapreduce.Job job,
org.apache.avro.Schema schema,
java.lang.String path)
Sets the job input key schema for a path.
|
public static org.apache.avro.Schema getInputKeySchemaForSplit(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapreduce.InputSplit split)
conf
- configuration to get schema fromsplit
- input split to get schema forpublic static void setInputKeySchemaForPath(org.apache.hadoop.mapreduce.Job job, org.apache.avro.Schema schema, java.lang.String path)
job
- The job to configure.schema
- The input key schema.path
- the path to set the schema for