|
||||||||||
| 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 | |
|---|---|
static MerkleTree.RowHash |
EMPTY_ROW
|
AntiEntropyService.TreeRequest |
request
|
MerkleTree |
tree
|
| Method Summary | |
|---|---|
void |
add(AbstractCompactedRow row)
Called (in order) for every row present in the CF. |
void |
complete()
Registers the newly created tree for rendezvous in Stage.ANTIENTROPY. |
void |
prepare(ColumnFamilyStore cfs)
|
void |
run()
Called after the validation lifecycle to respond with the now valid tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final AntiEntropyService.TreeRequest request
public final MerkleTree tree
public static final MerkleTree.RowHash EMPTY_ROW
| Method Detail |
|---|
public void prepare(ColumnFamilyStore cfs)
public void add(AbstractCompactedRow row)
row - The row.public void complete()
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||