protected class AvroSequenceFileInputFormat.AvroSequenceFileRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<K,V>
This class is based on Hadoop's SequenceFileRecordReader, modified to construct an AvroSequenceFile.Reader instead of a SequenceFile.Reader.
Modifier | Constructor and Description |
---|---|
protected |
AvroSequenceFileInputFormat.AvroSequenceFileRecordReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
K |
getCurrentKey() |
V |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
protected AvroSequenceFileInputFormat.AvroSequenceFileRecordReader()
public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
initialize
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
public K getCurrentKey()
public V getCurrentValue()
public float getProgress() throws IOException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.