Class LargeRecordHandler<T>
- java.lang.Object
-
- org.apache.flink.runtime.operators.sort.LargeRecordHandler<T>
-
public class LargeRecordHandler<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description LargeRecordHandler(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, org.apache.flink.api.common.typeutils.TypeComparator<T> comparator, IOManager ioManager, MemoryManager memManager, List<org.apache.flink.core.memory.MemorySegment> memory, TaskInvokable memoryOwner, int maxFilehandles, org.apache.flink.api.common.ExecutionConfig executionConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddRecord(T record)voidclose()Closes all structures and deletes all temporary files.org.apache.flink.util.MutableObjectIterator<T>finishWriteAndSortKeys(List<org.apache.flink.core.memory.MemorySegment> memory)booleanhasData()
-
-
-
Constructor Detail
-
LargeRecordHandler
public LargeRecordHandler(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, org.apache.flink.api.common.typeutils.TypeComparator<T> comparator, IOManager ioManager, MemoryManager memManager, List<org.apache.flink.core.memory.MemorySegment> memory, TaskInvokable memoryOwner, int maxFilehandles, org.apache.flink.api.common.ExecutionConfig executionConfig)
-
-
Method Detail
-
addRecord
public long addRecord(T record) throws IOException
- Throws:
IOException
-
finishWriteAndSortKeys
public org.apache.flink.util.MutableObjectIterator<T> finishWriteAndSortKeys(List<org.apache.flink.core.memory.MemorySegment> memory) throws IOException
- Throws:
IOException
-
close
public void close() throws IOExceptionCloses all structures and deletes all temporary files. Even in the presence of failures, this method will try and continue closing files and deleting temporary files.- Throws:
IOException- Thrown if an error occurred while closing/deleting the files.
-
hasData
public boolean hasData()
-
-