T
- The type of the record that is read.public class MutableRecordReader<T extends IOReadableWritable> extends AbstractReader implements MutableReader<T>
inputGate
Constructor and Description |
---|
MutableRecordReader(InputGate inputGate,
String[] tmpDirectories)
Creates a new MutableRecordReader that de-serializes records from the given input gate and
can spill partial records to disk, if they grow large.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBuffers() |
protected boolean |
getNextRecord(T target) |
boolean |
next(T target) |
handleEvent, hasReachedEndOfSuperstep, isFinished, publish, registerTaskEventListener, sendTaskEvent, setIterativeReader, startNextSuperstep
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasReachedEndOfSuperstep, isFinished, registerTaskEventListener, sendTaskEvent, setIterativeReader, startNextSuperstep
public MutableRecordReader(InputGate inputGate, String[] tmpDirectories)
inputGate
- The input gate to read from.tmpDirectories
- The temp directories. USed for spilling if the reader concurrently
reconstructs multiple large records.public boolean next(T target) throws IOException, InterruptedException
next
in interface MutableReader<T extends IOReadableWritable>
IOException
InterruptedException
public void clearBuffers()
clearBuffers
in interface MutableReader<T extends IOReadableWritable>
protected boolean getNextRecord(T target) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.