public class AvroUtf8InputFormat extends org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<Utf8>,org.apache.hadoop.io.NullWritable> implements org.apache.hadoop.mapred.JobConfigurable
InputFormat
for text files.
Each line is a Utf8
key; values are null.Constructor and Description |
---|
AvroUtf8InputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.mapred.JobConf conf) |
org.apache.hadoop.mapred.RecordReader<AvroWrapper<Utf8>,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 file) |
public void configure(org.apache.hadoop.mapred.JobConf conf)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
protected boolean isSplitable(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file)
isSplitable
in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<Utf8>,org.apache.hadoop.io.NullWritable>
public org.apache.hadoop.mapred.RecordReader<AvroWrapper<Utf8>,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<Utf8>,org.apache.hadoop.io.NullWritable>
getRecordReader
in class org.apache.hadoop.mapred.FileInputFormat<AvroWrapper<Utf8>,org.apache.hadoop.io.NullWritable>
IOException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.