O
- The generic type of the unserialized value object.public class KVOList<O> extends KVO<O>
KVO
to allow duplicates to be gathered together in a
doubly-linked list. This is used to facilitate duplicate removal where the
goal is to eliminate the index write for the duplicate instance(s) but where
we still want to take some after action for each distinct instance.IDuplicateRemover
Modifier and Type | Class and Description |
---|---|
static interface |
KVOList.Op<O>
An operation which can be mapped over the duplicate list.
|
Modifier and Type | Method and Description |
---|---|
void |
add(KVO<O> o)
Add a reference to the duplicates list.
|
void |
done()
Extended to map the operation over the duplicate list.
|
int |
getDuplicateCount()
The #of duplicates on the internal list.
|
boolean |
isDuplicateListEmpty()
Return
true iff no duplicates have been assigned. |
void |
map(KVOList.Op<O> op)
Maps the operation across the duplicate list (the operation is NOT
applied to the original).
|
public KVOList(byte[] key, byte[] val, O obj)
key
- The unsigned byte[] key (required).val
- The byte[] value (optional).obj
- The paired application object (optional).latch
- The object that maintains the counter.public void add(KVO<O> o)
done()
.o
- A duplicate of this object.public int getDuplicateCount()
public boolean isDuplicateListEmpty()
true
iff no duplicates have been assigned.public void done()
public void map(KVOList.Op<O> op)
op
- The operation.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.