public class InterRecordReader extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>
InterRecordWriter
It uses the default InterSedes object for deserialization.| Constructor and Description |
|---|
InterRecordReader(int syncMarkerLength,
long syncMarkerInterval) |
| Modifier and Type | Method and Description |
|---|---|
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() |
boolean |
skipUntilMarkerOrSplitEndOrEOF()
Skips to next sync marker
|
public InterRecordReader(int syncMarkerLength,
long syncMarkerInterval)
public void initialize(org.apache.hadoop.mapreduce.InputSplit genericSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException
initialize in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>java.io.IOExceptionpublic boolean skipUntilMarkerOrSplitEndOrEOF()
throws java.io.IOException
java.io.IOExceptionpublic boolean nextKeyValue()
throws java.io.IOException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>java.io.IOExceptionpublic org.apache.hadoop.io.Text getCurrentKey()
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>public Tuple getCurrentValue()
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>public float getProgress()
getProgress in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.Text,Tuple>java.io.IOExceptionCopyright © 2007-2025 The Apache Software Foundation