T
- result typepublic interface MergeFunction<T>
KeyValue
s.
IMPORTANT, Object reusing inside the kv of the add(org.apache.paimon.KeyValue)
input:
Modifier and Type | Method and Description |
---|---|
void |
add(KeyValue kv)
Add the given
KeyValue to the merge function. |
T |
getResult()
Get current merged value.
|
boolean |
requireCopy() |
void |
reset()
Reset the merge function to its default state, call this before calling
add(KeyValue) for the first time or after getResult() . |
void reset()
add(KeyValue)
for the first time or after getResult()
.T getResult()
boolean requireCopy()
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.