public class SortBufferLocalMerger extends Object implements LocalMerger
LocalMerger
which stores records in SortBufferWriteBuffer
.Constructor and Description |
---|
SortBufferLocalMerger(SortBufferWriteBuffer sortBuffer,
RecordComparator keyComparator,
MergeFunction<KeyValue> mergeFunction) |
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 SortBufferLocalMerger(SortBufferWriteBuffer sortBuffer, RecordComparator keyComparator, MergeFunction<KeyValue> mergeFunction)
public boolean put(RowKind rowKind, BinaryRow key, InternalRow value) throws IOException
put
in interface LocalMerger
IOException
public int size()
size
in interface LocalMerger
public void forEach(java.util.function.Consumer<InternalRow> consumer) throws IOException
forEach
in interface LocalMerger
IOException
public void clear()
clear
in interface LocalMerger
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.