public class LargeRecordHandler<T> extends Object
Constructor and Description |
---|
LargeRecordHandler(TypeSerializer<T> serializer,
TypeComparator<T> comparator,
IOManager ioManager,
MemoryManager memManager,
List<MemorySegment> memory,
AbstractInvokable memoryOwner,
int maxFilehandles) |
Modifier and Type | Method and Description |
---|---|
long |
addRecord(T record) |
void |
close()
Closes all structures and deletes all temporary files.
|
MutableObjectIterator<T> |
finishWriteAndSortKeys(List<MemorySegment> memory) |
boolean |
hasData() |
public LargeRecordHandler(TypeSerializer<T> serializer, TypeComparator<T> comparator, IOManager ioManager, MemoryManager memManager, List<MemorySegment> memory, AbstractInvokable memoryOwner, int maxFilehandles)
public long addRecord(T record) throws IOException
IOException
public MutableObjectIterator<T> finishWriteAndSortKeys(List<MemorySegment> memory) throws IOException
IOException
public void close() throws IOException
IOException
- Thrown if an error occurred while closing/deleting the files.public boolean hasData()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.