public interface UpdateFunction<K,V>
Modifier and Type | Interface and Description |
---|---|
static class |
UpdateFunction.Simple<V> |
Modifier and Type | Field and Description |
---|---|
static UpdateFunction.Simple<java.lang.Object> |
noOp |
Modifier and Type | Method and Description |
---|---|
V |
insert(K insert)
Computes the value that should be inserted in the BTree.
|
V |
merge(V replacing,
K update)
Computes the result of merging the existing value with the one from the update.
|
static <K> UpdateFunction<K,K> |
noOp() |
void |
onAllocatedOnHeap(long heapSize) |
static final UpdateFunction.Simple<java.lang.Object> noOp
V insert(K insert)
insert
- the update valueV merge(V replacing, K update)
replacing
- the value in the original tree we have matchedupdate
- the value in the updating collection that matchedvoid onAllocatedOnHeap(long heapSize)
heapSize
- extra heap space allocated (over previous tree)static <K> UpdateFunction<K,K> noOp()
Copyright © 2009- The Apache Software Foundation