public class LookupChangelogMergeFunctionWrapper<T> extends Object implements MergeFunctionWrapper<ChangelogResult>
MergeFunction
s to produce changelog by lookup during the compaction involving
level 0 files.
Changelog records are generated in the process of the level-0 file participating in the compaction, if during the compaction processing:
Constructor and Description |
---|
LookupChangelogMergeFunctionWrapper(MergeFunctionFactory<KeyValue> mergeFunctionFactory,
java.util.function.Function<InternalRow,T> lookup,
RecordEqualiser valueEqualiser,
LookupStrategy lookupStrategy,
DeletionVectorsMaintainer deletionVectorsMaintainer,
UserDefinedSeqComparator userDefinedSeqComparator) |
Modifier and Type | Method and Description |
---|---|
void |
add(KeyValue kv) |
ChangelogResult |
getResult() |
void |
reset() |
public LookupChangelogMergeFunctionWrapper(MergeFunctionFactory<KeyValue> mergeFunctionFactory, java.util.function.Function<InternalRow,T> lookup, @Nullable RecordEqualiser valueEqualiser, LookupStrategy lookupStrategy, @Nullable DeletionVectorsMaintainer deletionVectorsMaintainer, @Nullable UserDefinedSeqComparator userDefinedSeqComparator)
public void reset()
reset
in interface MergeFunctionWrapper<ChangelogResult>
public void add(KeyValue kv)
add
in interface MergeFunctionWrapper<ChangelogResult>
public ChangelogResult getResult()
getResult
in interface MergeFunctionWrapper<ChangelogResult>
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.