public class LargeRecordHandler<T> extends Object
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
long |
addRecord(T record) |
void |
close()
Closes all structures and deletes all temporary files.
|
org.apache.flink.util.MutableObjectIterator<T> |
finishWriteAndSortKeys(List<org.apache.flink.core.memory.MemorySegment> memory) |
boolean |
hasData() |
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)
public long addRecord(T record) throws IOException
IOExceptionpublic org.apache.flink.util.MutableObjectIterator<T> finishWriteAndSortKeys(List<org.apache.flink.core.memory.MemorySegment> memory) throws IOException
IOExceptionpublic void close()
throws IOException
IOException - Thrown if an error occurred while closing/deleting the files.public boolean hasData()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.