|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.service.AntiEntropyService.Validator
public static class AntiEntropyService.Validator
A Strategy to handle building and validating a merkle tree for a column family. Lifecycle: 1. prepare() - Initialize tree with samples. 2. add() - 0 or more times, to add hashes to the tree. 3. complete() - Enqueues any operations that were blocked waiting for a valid tree.
| Field Summary | |
|---|---|
org.apache.cassandra.service.AntiEntropyService.CFPair |
cf
|
static MerkleTree.RowHash |
EMPTY_ROW
|
MerkleTree |
tree
|
| Method Summary | |
|---|---|
void |
add(CompactionIterator.CompactedRow row)
Called (in order) for every row present in the CF. |
java.lang.Object |
call()
Called after the validation lifecycle to trigger additional action with the now valid tree. |
void |
complete()
Registers the newly created tree for rendezvous in AE_SERVICE_STAGE. |
void |
prepare(ColumnFamilyStore cfs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final org.apache.cassandra.service.AntiEntropyService.CFPair cf
public final MerkleTree tree
public static final MerkleTree.RowHash EMPTY_ROW
| Method Detail |
|---|
public void prepare(ColumnFamilyStore cfs)
public void add(CompactionIterator.CompactedRow row)
row - The row.public void complete()
public java.lang.Object call()
throws java.lang.Exception
call in interface java.util.concurrent.Callable<java.lang.Object>java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||