org.apache.hadoop.mapreduce.split
Class TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordReader<K,V>
      extended by org.apache.hadoop.mapreduce.split.TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader
All Implemented Interfaces:
Closeable
Enclosing class:
TezGroupedSplitsInputFormat<K,V>

public class TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<K,V>


Constructor Summary
TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader(TezGroupedSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader

public TezGroupedSplitsInputFormat.TezGroupedSplitsRecordReader(TezGroupedSplit split,
                                                                org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                         throws IOException
Throws:
IOException
Method Detail

initialize

public void initialize(org.apache.hadoop.mapreduce.InputSplit split,
                       org.apache.hadoop.mapreduce.TaskAttemptContext context)
                throws IOException,
                       InterruptedException
Specified by:
initialize in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException
InterruptedException

nextKeyValue

public boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
Specified by:
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException
InterruptedException

getCurrentKey

public K getCurrentKey()
                throws IOException,
                       InterruptedException
Specified by:
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException
InterruptedException

getCurrentValue

public V getCurrentValue()
                  throws IOException,
                         InterruptedException
Specified by:
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException
InterruptedException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException

initNextRecordReader

protected boolean initNextRecordReader()
                                throws IOException
Throws:
IOException

getProgress

public float getProgress()
                  throws IOException,
                         InterruptedException
return progress based on the amount of data processed so far.

Specified by:
getProgress in class org.apache.hadoop.mapreduce.RecordReader<K,V>
Throws:
IOException
InterruptedException


Copyright © 2014 Apache Software Foundation. All rights reserved.