Class BlockBalancedTreeReader
java.lang.Object
org.apache.cassandra.index.sai.disk.v1.bbtree.BlockBalancedTreeWalker
org.apache.cassandra.index.sai.disk.v1.bbtree.BlockBalancedTreeReader
- All Implemented Interfaces:
Closeable,AutoCloseable
Handles intersection of a point or point range with a block balanced tree previously written with
BlockBalancedTreeWriter.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWe recurse the balanced tree, using a provided instance of this to guide the recursion. -
Constructor Summary
ConstructorsConstructorDescriptionBlockBalancedTreeReader(IndexIdentifier indexIdentifier, FileHandle treeIndexFile, long treeIndexRoot, FileHandle postingsFile, long treePostingsRoot) Performs a blocking read. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intlongintersect(BlockBalancedTreeReader.IntersectVisitor visitor, QueryEventListener.BalancedTreeEventListener listener, QueryContext context) Methods inherited from class org.apache.cassandra.index.sai.disk.v1.bbtree.BlockBalancedTreeWalker
memoryUsage, newTraversalState
-
Constructor Details
-
BlockBalancedTreeReader
public BlockBalancedTreeReader(IndexIdentifier indexIdentifier, FileHandle treeIndexFile, long treeIndexRoot, FileHandle postingsFile, long treePostingsRoot) throws IOException Performs a blocking read.- Throws:
IOException
-
-
Method Details
-
getBytesPerValue
public int getBytesPerValue() -
getPointCount
public long getPointCount() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classBlockBalancedTreeWalker
-
intersect
public PostingList intersect(BlockBalancedTreeReader.IntersectVisitor visitor, QueryEventListener.BalancedTreeEventListener listener, QueryContext context)
-