public class DynamicFileListRecordReader<K,V>
extends org.apache.hadoop.mapreduce.RecordReader<K,V>
| Constructor and Description |
|---|
DynamicFileListRecordReader(DelegateRecordReaderFactory<K,V> delegateRecordReaderFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the record reader.
|
K |
getCurrentKey()
Gets the current key as reported by the delegate record reader.
|
V |
getCurrentValue()
Gets the current value.
|
float |
getProgress()
Returns the current progress based on the number of records read compared to the *estimated*
total number of records planned to be read; this number may be inexact, but will not
report a number greater than 1.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit genericSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue()
Reads the next key, value pair.
|
public DynamicFileListRecordReader(DelegateRecordReaderFactory<K,V> delegateRecordReaderFactory)
public void initialize(org.apache.hadoop.mapreduce.InputSplit genericSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException
public boolean nextKeyValue()
throws java.io.IOException,
java.lang.InterruptedException
public K getCurrentKey()
public V getCurrentValue()
public float getProgress()
public void close()
throws java.io.IOException
Copyright © 2019. All rights reserved.