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
IOException
public 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>
IOException
InterruptedException
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
public K getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
public V getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
protected boolean initNextRecordReader() throws IOException
IOException
public float getProgress() throws IOException, InterruptedException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<K,V>
IOException
InterruptedException
Copyright © 2016 Apache Software Foundation. All rights reserved.