Class OnDiskBlock<T extends Term>
- java.lang.Object
-
- org.apache.cassandra.index.sasi.disk.OnDiskBlock<T>
-
- Direct Known Subclasses:
OnDiskIndex.DataBlock,OnDiskIndex.PointerBlock
public abstract class OnDiskBlock<T extends Term> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOnDiskBlock.BlockTypestatic classOnDiskBlock.SearchResult<T>
-
Field Summary
Fields Modifier and Type Field Description protected MappedBufferblockIndexprotected intblockIndexSizeprotected TokenTreecombinedIndexprotected booleanhasCombinedIndex
-
Constructor Summary
Constructors Constructor Description OnDiskBlock(Descriptor descriptor, MappedBuffer block, OnDiskBlock.BlockType blockType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Tcast(MappedBuffer data)TokenTreegetBlockIndex()protected TgetTerm(int index)protected longgetTermPosition(int idx)intmaxOffset(OnDiskIndex.IteratorOrder order)intminOffset(OnDiskIndex.IteratorOrder order)OnDiskBlock.SearchResult<T>search(AbstractType<?> comparator, java.nio.ByteBuffer query)protected inttermCount()
-
-
-
Field Detail
-
blockIndex
protected final MappedBuffer blockIndex
-
blockIndexSize
protected final int blockIndexSize
-
hasCombinedIndex
protected final boolean hasCombinedIndex
-
combinedIndex
protected final TokenTree combinedIndex
-
-
Constructor Detail
-
OnDiskBlock
public OnDiskBlock(Descriptor descriptor, MappedBuffer block, OnDiskBlock.BlockType blockType)
-
-
Method Detail
-
search
public OnDiskBlock.SearchResult<T> search(AbstractType<?> comparator, java.nio.ByteBuffer query)
-
getTerm
protected T getTerm(int index)
-
getTermPosition
protected long getTermPosition(int idx)
-
termCount
protected int termCount()
-
cast
protected abstract T cast(MappedBuffer data)
-
getBlockIndex
public TokenTree getBlockIndex()
-
minOffset
public int minOffset(OnDiskIndex.IteratorOrder order)
-
maxOffset
public int maxOffset(OnDiskIndex.IteratorOrder order)
-
-