Package org.apache.cassandra.db.tries
Interface Trie.Walker<T,R>
- All Superinterfaces:
Trie.ResettingTransitionsReceiver,Trie.TransitionsReceiver
- All Known Subinterfaces:
Trie.ValueConsumer<T>
- All Known Implementing Classes:
TrieEntriesWalker
A push interface for walking over the trie. Builds upon TransitionsReceiver to be given the bytes of the
path, and adds methods called on encountering content and completion.
See
TrieDumper for an example of how this can be used, and TrieEntriesWalker as a base class
for other common usages.-
Method Summary
Methods inherited from interface org.apache.cassandra.db.tries.Trie.ResettingTransitionsReceiver
resetPathLengthMethods inherited from interface org.apache.cassandra.db.tries.Trie.TransitionsReceiver
addPathByte, addPathBytes
-
Method Details
-
content
Called when content is found. -
complete
R complete()Called at the completion of the walk.
-