public class FilteredRecordReader<E> extends RecordReader<E,Void>
| Constructor and Description |
|---|
FilteredRecordReader(RecordReader<E,Void> unfiltered,
Constraints constraints,
EntityAccessor<E> accessor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
E |
getCurrentKey() |
Void |
getCurrentValue() |
float |
getProgress() |
void |
initialize(InputSplit inputSplit,
TaskAttemptContext taskAttemptContext) |
boolean |
nextKeyValue() |
public FilteredRecordReader(RecordReader<E,Void> unfiltered, Constraints constraints, EntityAccessor<E> accessor)
public void initialize(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException
initialize in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic E getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic Void getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class RecordReader<E,Void>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class RecordReader<E,Void>IOExceptionCopyright © 2013–2015. All rights reserved.