Class MutableRecordReader<T extends org.apache.flink.core.io.IOReadableWritable>
java.lang.Object
org.apache.flink.runtime.io.network.api.reader.AbstractReader
org.apache.flink.runtime.io.network.api.reader.MutableRecordReader<T>
- Type Parameters:
T- The type of the record that is read.
- All Implemented Interfaces:
MutableReader<T>,ReaderBase
public class MutableRecordReader<T extends org.apache.flink.core.io.IOReadableWritable>
extends AbstractReader
implements MutableReader<T>
Implementation of the record-oriented reader for mutable record types.
-
Field Summary
Fields inherited from class org.apache.flink.runtime.io.network.api.reader.AbstractReader
inputGate -
Constructor Summary
ConstructorsConstructorDescriptionMutableRecordReader(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. -
Method Summary
Methods inherited from class org.apache.flink.runtime.io.network.api.reader.AbstractReader
handleEvent, hasReachedEndOfSuperstep, isFinished, publish, registerTaskEventListener, sendTaskEvent, setIterativeReader, startNextSuperstepMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.io.network.api.reader.ReaderBase
hasReachedEndOfSuperstep, isFinished, registerTaskEventListener, sendTaskEvent, setIterativeReader, startNextSuperstep
-
Constructor Details
-
MutableRecordReader
Creates a new MutableRecordReader that de-serializes records from the given input gate and can spill partial records to disk, if they grow large.- Parameters:
inputGate- The input gate to read from.tmpDirectories- The temp directories. USed for spilling if the reader concurrently reconstructs multiple large records.
-
-
Method Details
-
next
- Specified by:
nextin interfaceMutableReader<T extends org.apache.flink.core.io.IOReadableWritable>- Throws:
IOExceptionInterruptedException
-
clearBuffers
public void clearBuffers()- Specified by:
clearBuffersin interfaceMutableReader<T extends org.apache.flink.core.io.IOReadableWritable>
-
getNextRecord
- Throws:
IOExceptionInterruptedException
-