Class TempBarrier<T>
- java.lang.Object
-
- org.apache.flink.runtime.operators.TempBarrier<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,CloseableInputProvider<T>
public class TempBarrier<T> extends Object implements CloseableInputProvider<T>
This class facilitates JVM-local exchange between stages of a batch job.
-
-
Constructor Summary
Constructors Constructor Description 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.flink.util.MutableObjectIterator<T>getIterator()This method resets the input!voidstartReading()
-
-
-
Constructor Detail
-
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 Detail
-
startReading
public void startReading()
-
getIterator
public org.apache.flink.util.MutableObjectIterator<T> getIterator() throws InterruptedException, IOException
This method resets the input!- Specified by:
getIteratorin interfaceCloseableInputProvider<T>- Returns:
- The iterator provided by this iterator provider.
- Throws:
InterruptedExceptionIOException- See Also:
CloseableInputProvider.getIterator()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-