Class TempBarrier<T>
java.lang.Object
org.apache.flink.runtime.operators.TempBarrier<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,CloseableInputProvider<T>
This class facilitates JVM-local exchange between stages of a batch job.
-
Constructor Summary
ConstructorsConstructorDescriptionTempBarrier(AbstractInvokable owner, org.apache.flink.util.MutableObjectIterator<T> input, org.apache.flink.api.common.typeutils.TypeSerializerFactory<T> serializerFactory, MemoryManager memManager, IOManager ioManager, int numPages, List<org.apache.flink.core.memory.MemorySegment> preAllocated) -
Method Summary
-
Constructor Details
-
TempBarrier
public TempBarrier(AbstractInvokable owner, org.apache.flink.util.MutableObjectIterator<T> input, org.apache.flink.api.common.typeutils.TypeSerializerFactory<T> serializerFactory, MemoryManager memManager, IOManager ioManager, int numPages, List<org.apache.flink.core.memory.MemorySegment> preAllocated) throws MemoryAllocationException - Throws:
MemoryAllocationException
-
-
Method Details
-
startReading
public void startReading() -
getIterator
public org.apache.flink.util.MutableObjectIterator<T> getIterator() throws InterruptedException, IOExceptionThis method resets the input!- Specified by:
getIteratorin interfaceCloseableInputProvider<T>- Returns:
- The iterator provided by this iterator provider.
- Throws:
InterruptedExceptionIOException- See Also:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-