public class AvroTrevniInputFormat<T> extends FileInputFormat<AvroWrapper<T>,NullWritable>
InputFormat
for Trevni files.
A subset schema to be read may be specified with AvroJob#setInputSchema(Schema)
.
FileInputFormat.Counter
LOG
Constructor and Description |
---|
AvroTrevniInputFormat() |
Modifier and Type | Method and Description |
---|---|
RecordReader<AvroWrapper<T>,NullWritable> |
getRecordReader(InputSplit split,
JobConf job,
Reporter reporter) |
protected boolean |
isSplitable(FileSystem fs,
Path filename) |
protected FileStatus[] |
listStatus(JobConf job) |
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplitHosts, getSplits, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize
protected boolean isSplitable(FileSystem fs, Path filename)
isSplitable
in class FileInputFormat<AvroWrapper<T>,NullWritable>
protected FileStatus[] listStatus(JobConf job) throws IOException
listStatus
in class FileInputFormat<AvroWrapper<T>,NullWritable>
IOException
public RecordReader<AvroWrapper<T>,NullWritable> getRecordReader(InputSplit split, JobConf job, Reporter reporter) throws IOException
getRecordReader
in interface InputFormat<AvroWrapper<T>,NullWritable>
getRecordReader
in class FileInputFormat<AvroWrapper<T>,NullWritable>
IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.