Class BlockBalancedTreeWalker
java.lang.Object
org.apache.cassandra.index.sai.disk.v1.bbtree.BlockBalancedTreeWalker
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
BlockBalancedTreeReader
Base reader for a block balanced tree previously written with
BlockBalancedTreeWriter.
Holds the index tree on heap and enables its traversal via traverse(TraversalCallback).
-
Constructor Summary
ConstructorsConstructorDescriptionBlockBalancedTreeWalker(org.apache.lucene.store.DataInput indexInput, long treeIndexRoot) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longorg.apache.cassandra.index.sai.disk.v1.bbtree.BlockBalancedTreeWalker.TraversalState
-
Constructor Details
-
BlockBalancedTreeWalker
public BlockBalancedTreeWalker(org.apache.lucene.store.DataInput indexInput, long treeIndexRoot) throws IOException - Throws:
IOException
-
-
Method Details
-
memoryUsage
public long memoryUsage() -
newTraversalState
public org.apache.cassandra.index.sai.disk.v1.bbtree.BlockBalancedTreeWalker.TraversalState newTraversalState() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-