public class AvroTrevniInputFormat<T> extends org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>
InputFormat
for Trevni files.
A subset schema to be read may be specified with AvroJob#setInputSchema(Schema)
.
Constructor and Description |
---|
AvroTrevniInputFormat() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapred.RecordReader<AvroWrapper<T>,org.apache.hadoop.io.NullWritable> |
getRecordReader(org.apache.hadoop.mapred.InputSplit split,
org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.Reporter reporter) |
protected boolean |
isSplitable(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path filename) |
protected org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.mapred.JobConf job) |
protected boolean isSplitable(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path filename)
isSplitable
in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>
protected org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.mapred.JobConf job) throws IOException
listStatus
in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>
IOException
public org.apache.hadoop.mapred.RecordReader<AvroWrapper<T>,org.apache.hadoop.io.NullWritable> getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) throws IOException
getRecordReader
in interface org.apache.hadoop.mapred.InputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>
getRecordReader
in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<T>,org.apache.hadoop.io.NullWritable>
IOException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.