public class HashMapLocalMerger extends Object implements LocalMerger
LocalMerger which stores records in BytesHashMap.| Constructor and Description |
|---|
HashMapLocalMerger(RowType rowType,
List<String> primaryKeys,
MemorySegmentPool memoryPool,
MergeFunction<KeyValue> mergeFunction,
FieldsComparator userDefinedSeqComparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
forEach(java.util.function.Consumer<InternalRow> consumer) |
boolean |
put(RowKind rowKind,
BinaryRow key,
InternalRow value) |
int |
size() |
public HashMapLocalMerger(RowType rowType, List<String> primaryKeys, MemorySegmentPool memoryPool, MergeFunction<KeyValue> mergeFunction, @Nullable FieldsComparator userDefinedSeqComparator)
public boolean put(RowKind rowKind, BinaryRow key, InternalRow value) throws IOException
put in interface LocalMergerIOExceptionpublic int size()
size in interface LocalMergerpublic void forEach(java.util.function.Consumer<InternalRow> consumer) throws IOException
forEach in interface LocalMergerIOExceptionpublic void clear()
clear in interface LocalMergerCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.