org.apache.pig.impl.io
Class TFileRecordReader
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TFileRecordReader
public TFileRecordReader()
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()
throws IOException
- Get the progress within the split
- Specified by:
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>
- Throws:
IOException
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 © 2007-2012 The Apache Software Foundation