Uses of Interface
org.apache.cassandra.index.sai.utils.PrimaryKey
Packages that use PrimaryKey
Package
Description
-
Uses of PrimaryKey in org.apache.cassandra.index.sai.disk
Methods in org.apache.cassandra.index.sai.disk that return PrimaryKeyModifier and TypeMethodDescriptionprotected PrimaryKeyIndexSearchResultIterator.computeNext()PrimaryKeyMap.primaryKeyFromRowId(long sstableRowId) Returns aPrimaryKeyfor a row IDMethods in org.apache.cassandra.index.sai.disk with parameters of type PrimaryKeyModifier and TypeMethodDescriptionvoidRowMapping.add(PrimaryKey key, long sstableRowId) Include PrimaryKey to RowId mappingvoidPerColumnIndexWriter.addRow(PrimaryKey key, Row row, long sstableRowId) Adds a row to this index.intRowMapping.get(PrimaryKey key) Returns the SSTable row ID for aPrimaryKeyvoidPerSSTableIndexWriter.nextRow(PrimaryKey primaryKey) protected voidIndexSearchResultIterator.performSkipTo(PrimaryKey nextKey) longPrimaryKeyMap.rowIdFromPrimaryKey(PrimaryKey key) Returns a row ID for aPrimaryKeyMethod parameters in org.apache.cassandra.index.sai.disk with type arguments of type PrimaryKeyModifier and TypeMethodDescriptionEmptyIndex.orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) abstract List<CloseableIterator<PrimaryKeyWithScore>>SSTableIndex.orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) -
Uses of PrimaryKey in org.apache.cassandra.index.sai.disk.v1
Methods in org.apache.cassandra.index.sai.disk.v1 that return PrimaryKeyModifier and TypeMethodDescriptionSkinnyPrimaryKeyMap.primaryKeyFromRowId(long sstableRowId) WidePrimaryKeyMap.primaryKeyFromRowId(long sstableRowId) Methods in org.apache.cassandra.index.sai.disk.v1 with parameters of type PrimaryKeyModifier and TypeMethodDescriptionvoidMemtableIndexWriter.addRow(PrimaryKey key, Row row, long sstableRowId) voidSSTableIndexWriter.addRow(PrimaryKey key, Row row, long sstableRowId) voidSSTableComponentsWriter.nextRow(PrimaryKey primaryKey) longSkinnyPrimaryKeyMap.rowIdFromPrimaryKey(PrimaryKey primaryKey) longWidePrimaryKeyMap.rowIdFromPrimaryKey(PrimaryKey primaryKey) protected longSkinnyPrimaryKeyMap.tokenCollisionDetection(PrimaryKey primaryKey, long rowId) Method parameters in org.apache.cassandra.index.sai.disk.v1 with type arguments of type PrimaryKeyModifier and TypeMethodDescriptionV1SSTableIndex.orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) -
Uses of PrimaryKey in org.apache.cassandra.index.sai.disk.v1.postings
Methods in org.apache.cassandra.index.sai.disk.v1.postings that return PrimaryKeyMethods in org.apache.cassandra.index.sai.disk.v1.postings with parameters of type PrimaryKeyModifier and TypeMethodDescriptionprotected voidPostingListRangeIterator.performSkipTo(PrimaryKey nextKey) -
Uses of PrimaryKey in org.apache.cassandra.index.sai.disk.v1.segment
Fields in org.apache.cassandra.index.sai.disk.v1.segment declared as PrimaryKeyModifier and TypeFieldDescriptionfinal PrimaryKeyIndexSegmentSearcherContext.maximumKeyfinal PrimaryKeySegmentMetadata.maxKeyfinal PrimaryKeyIndexSegmentSearcherContext.minimumKeyfinal PrimaryKeySegmentMetadata.minKeyOrdered by their token position in current segmentMethods in org.apache.cassandra.index.sai.disk.v1.segment with parameters of type PrimaryKeyModifier and TypeMethodDescriptionlongSegmentBuilder.add(ByteBuffer term, PrimaryKey key, long sstableRowId) Method parameters in org.apache.cassandra.index.sai.disk.v1.segment with type arguments of type PrimaryKeyModifier and TypeMethodDescriptionSegment.orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) default CloseableIterator<PrimaryKeyWithScore>SegmentOrdering.orderResultsBy(QueryContext queryContext, List<PrimaryKey> results, Expression orderer) Reorder, limit, and put back into original order the results from a single sstableVectorIndexSegmentSearcher.orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) Constructors in org.apache.cassandra.index.sai.disk.v1.segment with parameters of type PrimaryKeyModifierConstructorDescriptionIndexSegmentSearcherContext(PrimaryKey minimumKey, PrimaryKey maximumKey, long segmentRowIdOffset, QueryContext context, PeekablePostingList postingList) SegmentMetadata(long rowIdOffset, long numRows, long minSSTableRowId, long maxSSTableRowId, PrimaryKey minKey, PrimaryKey maxKey, ByteBuffer minTerm, ByteBuffer maxTerm, SegmentMetadata.ComponentMetadataMap componentMetadatas) -
Uses of PrimaryKey in org.apache.cassandra.index.sai.disk.v1.vector
Methods in org.apache.cassandra.index.sai.disk.v1.vector that return PrimaryKeyConstructors in org.apache.cassandra.index.sai.disk.v1.vector with parameters of type PrimaryKeyModifierConstructorDescriptionPrimaryKeyWithScore(ColumnMetadata columnMetadata, CellSourceIdentifier sourceTable, PrimaryKey primaryKey, float indexScore) -
Uses of PrimaryKey in org.apache.cassandra.index.sai.iterators
Fields in org.apache.cassandra.index.sai.iterators declared as PrimaryKeyModifier and TypeFieldDescriptionprotected PrimaryKeyKeyRangeIterator.Builder.Statistics.maxprotected PrimaryKeyKeyRangeIterator.Builder.Statistics.minMethods in org.apache.cassandra.index.sai.iterators that return PrimaryKeyModifier and TypeMethodDescriptionprotected PrimaryKeyKeyRangeConcatIterator.computeNext()protected PrimaryKeyKeyRangeIntersectionIterator.computeNext()KeyRangeUnionIterator.computeNext()KeyRangeIterator.Builder.getMaximum()final PrimaryKeyKeyRangeIterator.getMaximum()KeyRangeIterator.Builder.getMinimum()final PrimaryKeyKeyRangeIterator.getMinimum()protected static PrimaryKeyKeyRangeIterator.nullSafeMax(PrimaryKey a, PrimaryKey b) protected static PrimaryKeyKeyRangeIterator.nullSafeMin(PrimaryKey a, PrimaryKey b) Methods in org.apache.cassandra.index.sai.iterators with parameters of type PrimaryKeyModifier and TypeMethodDescriptionprotected static PrimaryKeyKeyRangeIterator.nullSafeMax(PrimaryKey a, PrimaryKey b) protected static PrimaryKeyKeyRangeIterator.nullSafeMin(PrimaryKey a, PrimaryKey b) protected voidKeyRangeConcatIterator.performSkipTo(PrimaryKey nextKey) protected voidKeyRangeIntersectionIterator.performSkipTo(PrimaryKey nextKey) protected abstract voidKeyRangeIterator.performSkipTo(PrimaryKey nextKey) Skip to nextKey.protected voidKeyRangeUnionIterator.performSkipTo(PrimaryKey nextKey) final voidKeyRangeIterator.skipTo(PrimaryKey nextKey) When called, this iterator's current position will be skipped forwards until finding either: 1) an element equal to or bigger than nextKey 2) the end of the iteratorConstructors in org.apache.cassandra.index.sai.iterators with parameters of type PrimaryKeyModifierConstructorDescriptionKeyRangeIterator(PrimaryKey min, PrimaryKey max, long count) KeyRangeIterator(PrimaryKey min, PrimaryKey max, long count, Runnable onClose) -
Uses of PrimaryKey in org.apache.cassandra.index.sai.memory
Methods in org.apache.cassandra.index.sai.memory that return PrimaryKeyModifier and TypeMethodDescriptionprotected PrimaryKeyFilteringInMemoryKeyRangeIterator.computeNext()protected PrimaryKeyInMemoryKeyRangeIterator.computeNext()protected PrimaryKeyInMemoryKeyRangeIterator.computeNextKey()Methods in org.apache.cassandra.index.sai.memory with parameters of type PrimaryKeyModifier and TypeMethodDescriptionprotected voidInMemoryKeyRangeIterator.performSkipTo(PrimaryKey nextKey) Method parameters in org.apache.cassandra.index.sai.memory with type arguments of type PrimaryKeyModifier and TypeMethodDescriptionMemtableIndex.orderResultsBy(QueryContext queryContext, List<PrimaryKey> results, Expression orderer) MemtableOrdering.orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) Order the given list ofPrimaryKeyresults corresponding to the given orderer.TrieMemoryIndex.orderResultsBy(QueryContext context, List<PrimaryKey> results, Expression orderer) VectorMemoryIndex.orderResultsBy(QueryContext queryContext, List<PrimaryKey> results, Expression orderer) abstract SegmentMetadata.ComponentMetadataMapMemoryIndex.writeDirect(IndexDescriptor indexDescriptor, IndexIdentifier indexIdentifier, Function<PrimaryKey, Integer> postingTransformer) MemtableIndex.writeDirect(IndexDescriptor indexDescriptor, IndexIdentifier indexIdentifier, Function<PrimaryKey, Integer> postingTransformer) TrieMemoryIndex.writeDirect(IndexDescriptor indexDescriptor, IndexIdentifier indexIdentifier, Function<PrimaryKey, Integer> postingTransformer) VectorMemoryIndex.writeDirect(IndexDescriptor indexDescriptor, IndexIdentifier indexIdentifier, Function<PrimaryKey, Integer> postingTransformer) Constructors in org.apache.cassandra.index.sai.memory with parameters of type PrimaryKeyModifierConstructorDescriptionInMemoryKeyRangeIterator(PrimaryKey min, PrimaryKey max, PriorityQueue<PrimaryKey> keys) An in-memoryKeyRangeIteratorthat uses aPriorityQueuewhich may contain duplicated keys as its backing store.Constructor parameters in org.apache.cassandra.index.sai.memory with type arguments of type PrimaryKeyModifierConstructorDescriptionFilteringInMemoryKeyRangeIterator(SortedSet<PrimaryKey> keys, AbstractBounds<PartitionPosition> keyRange) An in-memoryKeyRangeIteratorthat uses aPriorityQueuebuilt from aSortedSetwhich has no duplication as its backing store.InMemoryKeyRangeIterator(PrimaryKey min, PrimaryKey max, PriorityQueue<PrimaryKey> keys) An in-memoryKeyRangeIteratorthat uses aPriorityQueuewhich may contain duplicated keys as its backing store. -
Uses of PrimaryKey in org.apache.cassandra.index.sai.plan
Methods in org.apache.cassandra.index.sai.plan that return PrimaryKeyModifier and TypeMethodDescriptionQueryController.firstPrimaryKeyInRange()QueryController.lastPrimaryKeyInRange()Methods in org.apache.cassandra.index.sai.plan with parameters of type PrimaryKeyModifier and TypeMethodDescriptionbooleanQueryController.doesNotSelect(PrimaryKey key) Returns whether this query is not selecting thePrimaryKey.QueryController.queryStorage(PrimaryKey key, ColumnFamilyStore.ViewFragment view, ReadExecutionController executionController) Get an iterator over the row(s) for this primary key.StorageAttachedIndexSearcher.ScoreOrderedResultRetriever.readAndValidatePartition(PrimaryKey pk, List<PrimaryKeyWithScore> sourceKeys) Reads and validates a partition for a given primary key against its sources.Method parameters in org.apache.cassandra.index.sai.plan with type arguments of type PrimaryKeyModifier and TypeMethodDescriptionQueryController.queryStorage(List<PrimaryKey> keys, ReadExecutionController executionController) -
Uses of PrimaryKey in org.apache.cassandra.index.sai.utils
Methods in org.apache.cassandra.index.sai.utils that return PrimaryKeyModifier and TypeMethodDescriptionPrimaryKey.Factory.create(DecoratedKey partitionKey) Create aPrimaryKeyfor tables without clustering columnsPrimaryKey.Factory.create(DecoratedKey partitionKey, Clustering<?> clustering) Creates aPrimaryKeythat is fully represented by partition key and clustering.Creates aPrimaryKeythat is represented by aToken.PrimaryKey.Factory.fromComparableBytes(ByteSource byteSource) Create aPrimaryKeyfrom aByteSource.default PrimaryKeyPrimaryKey.toStatic()Methods in org.apache.cassandra.index.sai.utils that return types with arguments of type PrimaryKeyMethods in org.apache.cassandra.index.sai.utils with parameters of type PrimaryKeyModifier and TypeMethodDescriptionlongPrimaryKeys.add(PrimaryKey key) Adds aPrimaryKeyand returns the on-heap memory used if the key was addeddefault intPrimaryKey.compareTo(PrimaryKey key, boolean strict)