K - Key typeV - Value typepublic class CombineSequenceFileRecordReader<K,V> extends org.apache.hadoop.mapreduce.RecordReader<K,V>
| Constructor and Description |
|---|
CombineSequenceFileRecordReader(org.apache.hadoop.mapreduce.lib.input.CombineFileSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context,
Integer index) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
K |
getCurrentKey() |
V |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit curSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext curContext) |
boolean |
nextKeyValue() |
public CombineSequenceFileRecordReader(org.apache.hadoop.mapreduce.lib.input.CombineFileSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context, Integer index) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void initialize(org.apache.hadoop.mapreduce.InputSplit curSplit, org.apache.hadoop.mapreduce.TaskAttemptContext curContext) throws IOException, InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic float getProgress() throws IOException, InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionpublic K getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic V getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedException