K
- The type of key the record reader should generate.V
- The type of value the record reader should generate.T
- The type of the entries within the Trevni container file being read.public abstract class AvroTrevniRecordReaderBase<K,V,T>
extends org.apache.hadoop.mapreduce.RecordReader<K,V>
RecordReader
s that read Trevni container files.Constructor and Description |
---|
AvroTrevniRecordReaderBase() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected T |
getCurrentRecord()
Gets the current record read from the Trevni container file.
|
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit, 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
protected T getCurrentRecord()
Calling nextKeyValue()
moves this to the next record.
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
public float getProgress() throws IOException, InterruptedException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.