public class TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<K,V>
| Constructor and Description |
|---|
TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader(TezGroupedSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
K |
getCurrentKey() |
V |
getCurrentValue() |
float |
getProgress()
return progress based on the amount of data processed so far.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
protected boolean |
initNextRecordReader() |
boolean |
nextKeyValue() |
public TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader(TezGroupedSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
IOExceptionpublic 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>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionpublic 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 void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionprotected boolean initNextRecordReader()
throws IOException
IOExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<K,V>IOExceptionInterruptedExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.