K
- V
- public abstract class BinaryRecordReader<K extends Writable,V extends Writable>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Configuration |
conf
Configuration of the current job
|
protected boolean |
firstTime
A flag that is set before the first record is read
|
protected |
internalReaders
The internal readers that actually do the parsing
|
protected float |
progress1Before
Progress of file 1 before reading the current record.
|
protected CombineFileSplit |
split
The two splits parsed by this record reader
|
Constructor and Description |
---|
BinaryRecordReader(Configuration conf,
CombineFileSplit split) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
PairWritable<K> |
createKey() |
protected abstract |
createRecordReader(Configuration conf,
CombineFileSplit split,
int index)
Creates a record reader for one of the two splits parsed by this reader.
|
PairWritable<V> |
createValue() |
long |
getPos() |
float |
getProgress() |
boolean |
next(PairWritable<K> key,
PairWritable<V> value) |
protected boolean firstTime
protected[] internalReaders
protected CombineFileSplit split
protected Configuration conf
protected float progress1Before
public BinaryRecordReader(Configuration conf, CombineFileSplit split) throws java.io.IOException
java.io.IOException
protected abstractcreateRecordReader(Configuration conf, CombineFileSplit split, int index) throws java.io.IOException
split
- java.io.IOException
public boolean next(PairWritable<K> key, PairWritable<V> value) throws java.io.IOException
java.io.IOException
public PairWritable<K> createKey()
public PairWritable<V> createValue()
public long getPos() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public float getProgress() throws java.io.IOException
java.io.IOException