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, MutableObjectIterator<T> input, TypeSerializerFactory<T> serializerFactory, MemoryManager memManager, IOManager ioManager, int numPages, List<MemorySegment> preAllocated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
MutableObjectIterator<T>
getIterator()
This method resets the input!void
startReading()
-
-
-
Constructor Detail
-
TempBarrier
public TempBarrier(AbstractInvokable owner, MutableObjectIterator<T> input, TypeSerializerFactory<T> serializerFactory, MemoryManager memManager, IOManager ioManager, int numPages, List<MemorySegment> preAllocated) throws MemoryAllocationException
- Throws:
MemoryAllocationException
-
-
Method Detail
-
startReading
public void startReading()
-
getIterator
public MutableObjectIterator<T> getIterator() throws InterruptedException, IOException
This method resets the input!- Specified by:
getIterator
in interfaceCloseableInputProvider<T>
- Returns:
- The iterator provided by this iterator provider.
- Throws:
InterruptedException
IOException
- See Also:
CloseableInputProvider.getIterator()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-