public class AvroGenericRecordReader extends Object implements org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,AvroGenericRecordWritable>, org.apache.hadoop.mapred.JobConfigurable
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.mapred.JobConf |
jobConf |
Constructor and Description |
---|
AvroGenericRecordReader(org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.FileSplit split,
org.apache.hadoop.mapred.Reporter reporter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(org.apache.hadoop.mapred.JobConf jobConf) |
org.apache.hadoop.io.NullWritable |
createKey() |
AvroGenericRecordWritable |
createValue() |
long |
getPos() |
float |
getProgress() |
boolean |
next(org.apache.hadoop.io.NullWritable nullWritable,
AvroGenericRecordWritable record) |
public AvroGenericRecordReader(org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.FileSplit split, org.apache.hadoop.mapred.Reporter reporter) throws IOException
IOException
public boolean next(org.apache.hadoop.io.NullWritable nullWritable, AvroGenericRecordWritable record) throws IOException
next
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,AvroGenericRecordWritable>
IOException
public org.apache.hadoop.io.NullWritable createKey()
createKey
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,AvroGenericRecordWritable>
public AvroGenericRecordWritable createValue()
createValue
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,AvroGenericRecordWritable>
public long getPos() throws IOException
getPos
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,AvroGenericRecordWritable>
IOException
public void close() throws IOException
close
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,AvroGenericRecordWritable>
IOException
public float getProgress() throws IOException
getProgress
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,AvroGenericRecordWritable>
IOException
public void configure(org.apache.hadoop.mapred.JobConf jobConf)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
Copyright © 2017 The Apache Software Foundation. All rights reserved.