Class MemoryIndex
java.lang.Object
org.apache.cassandra.index.sai.memory.MemoryIndex
- All Implemented Interfaces:
MemtableOrdering
- Direct Known Subclasses:
TrieMemoryIndex,VectorMemoryIndex
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longadd(DecoratedKey key, Clustering<?> clustering, ByteBuffer value) abstract ByteBufferabstract ByteBufferabstract booleanisEmpty()abstract Iterator<Pair<ByteComparable,PrimaryKeys>> iterator()Iterate all Term->PrimaryKeys mappings in sorted orderabstract KeyRangeIteratorsearch(QueryContext queryContext, Expression expression, AbstractBounds<PartitionPosition> keyRange) abstract longupdate(DecoratedKey key, Clustering<?> clustering, ByteBuffer oldValue, ByteBuffer newValue) abstract SegmentMetadata.ComponentMetadataMapwriteDirect(IndexDescriptor indexDescriptor, IndexIdentifier indexIdentifier, Function<PrimaryKey, Integer> postingTransformer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.index.sai.memory.MemtableOrdering
orderBy, orderResultsBy
-
Field Details
-
index
-
-
Constructor Details
-
MemoryIndex
-
-
Method Details
-
add
-
update
public abstract long update(DecoratedKey key, Clustering<?> clustering, ByteBuffer oldValue, ByteBuffer newValue) -
search
public abstract KeyRangeIterator search(QueryContext queryContext, Expression expression, AbstractBounds<PartitionPosition> keyRange) -
isEmpty
public abstract boolean isEmpty() -
getMinTerm
-
getMaxTerm
-
iterator
Iterate all Term->PrimaryKeys mappings in sorted order -
writeDirect
public abstract SegmentMetadata.ComponentMetadataMap writeDirect(IndexDescriptor indexDescriptor, IndexIdentifier indexIdentifier, Function<PrimaryKey, Integer> postingTransformer) throws IOException- Throws:
IOException
-