org.apache.pig.impl.io
Class TFileRecordReader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>
      extended by org.apache.pig.impl.io.TFileRecordReader
All Implemented Interfaces:
Closeable

public class TFileRecordReader
extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>

A record reader used to read data written using InterRecordWriter It uses the default InterSedes object for deserialization.


Constructor Summary
TFileRecordReader()
           
 
Method Summary
 void close()
           
 org.apache.hadoop.io.Text getCurrentKey()
           
 Tuple getCurrentValue()
           
 float getProgress()
          Get the progress within the split
 void initialize(org.apache.hadoop.mapreduce.InputSplit genericSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context)
           
 boolean nextKeyValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TFileRecordReader

public TFileRecordReader()
Method Detail

initialize

public void initialize(org.apache.hadoop.mapreduce.InputSplit genericSplit,
                       org.apache.hadoop.mapreduce.TaskAttemptContext context)
                throws IOException
Specified by:
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>
Throws:
IOException

nextKeyValue

public boolean nextKeyValue()
                     throws IOException
Specified by:
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>
Throws:
IOException

getCurrentKey

public org.apache.hadoop.io.Text getCurrentKey()
Specified by:
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>

getCurrentValue

public Tuple getCurrentValue()
Specified by:
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>

getProgress

public float getProgress()
Get the progress within the split

Specified by:
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>

close

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


Copyright © ${year} The Apache Software Foundation