public class AvroKeyInputFormat<T> extends FileInputFormat<AvroKey<T>,NullWritable>
Keys are AvroKey wrapper objects that contain the Avro data. Since Avro container files store only records (not key/value pairs), the value from this InputFormat is a NullWritable.
FileInputFormat.Counter
Constructor and Description |
---|
AvroKeyInputFormat() |
Modifier and Type | Method and Description |
---|---|
RecordReader<AvroKey<T>,NullWritable> |
createRecordReader(InputSplit split,
TaskAttemptContext context) |
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getFormatMinSplitSize, getInputPathFilter, getInputPaths, getMaxSplitSize, getMinSplitSize, getSplits, isSplitable, listStatus, setInputPathFilter, setInputPaths, setInputPaths, setMaxInputSplitSize, setMinInputSplitSize
public RecordReader<AvroKey<T>,NullWritable> createRecordReader(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
createRecordReader
in class InputFormat<AvroKey<T>,NullWritable>
IOException
InterruptedException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.