Class LargeRecordHandler<T>
java.lang.Object
org.apache.flink.runtime.operators.sort.LargeRecordHandler<T>
-
Constructor Summary
ConstructorsConstructorDescriptionLargeRecordHandler(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
-
Constructor Details
-
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 Details
-
addRecord
- Throws:
IOException
-
finishWriteAndSortKeys
public org.apache.flink.util.MutableObjectIterator<T> finishWriteAndSortKeys(List<org.apache.flink.core.memory.MemorySegment> memory) throws IOException - Throws:
IOException
-
close
Closes 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()
-