T - The type of the record that is read.public class MutableRecordReader<T extends org.apache.flink.core.io.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, startNextSuperstepclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasReachedEndOfSuperstep, isFinished, registerTaskEventListener, sendTaskEvent, setIterativeReader, startNextSupersteppublic 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 org.apache.flink.core.io.IOReadableWritable>IOExceptionInterruptedExceptionpublic void clearBuffers()
clearBuffers in interface MutableReader<T extends org.apache.flink.core.io.IOReadableWritable>protected boolean getNextRecord(T target)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.