public static class ColumnData.Reconciler extends java.lang.Object implements UpdateFunction<ColumnData,ColumnData>, java.lang.AutoCloseable
UpdateFunction.Simple<V>
noOp
Constructor and Description |
---|
Reconciler() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ColumnData |
insert(ColumnData insert)
Computes the value that should be inserted in the BTree.
|
ColumnData |
merge(ColumnData existing,
ColumnData update)
Computes the result of merging the existing value with the one from the update.
|
void |
onAllocatedOnHeap(long heapSize) |
ColumnData |
retain(ColumnData existing)
Checks if the specified value should be deleted or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
noOp
public ColumnData merge(ColumnData existing, ColumnData update)
UpdateFunction
merge
in interface UpdateFunction<ColumnData,ColumnData>
existing
- the value in the original tree we have matchedupdate
- the value in the updating collection that matchedpublic void onAllocatedOnHeap(long heapSize)
onAllocatedOnHeap
in interface UpdateFunction<ColumnData,ColumnData>
heapSize
- extra heap space allocated (over previous tree)public ColumnData insert(ColumnData insert)
UpdateFunction
insert
in interface UpdateFunction<ColumnData,ColumnData>
insert
- the update valuepublic ColumnData retain(ColumnData existing)
existing
- the existing value to checknull
if the value should be removed from the BTree or the existing value if it should not.public void close()
close
in interface java.lang.AutoCloseable
Copyright © 2009-2022 The Apache Software Foundation