Class RowIdToPrimaryKeyWithScoreIterator
java.lang.Object
org.apache.cassandra.utils.AbstractIterator<PrimaryKeyWithScore>
org.apache.cassandra.index.sai.disk.v1.vector.RowIdToPrimaryKeyWithScoreIterator
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<PrimaryKeyWithScore>,AutoCloseable,Iterator<PrimaryKeyWithScore>,CloseableIterator<PrimaryKeyWithScore>
An iterator over scored primary keys ordered by the score descending
Not skippable.
-
Constructor Summary
ConstructorsConstructorDescriptionRowIdToPrimaryKeyWithScoreIterator(ColumnMetadata column, PrimaryKeyMap.Factory primaryKeyMapFactory, CloseableIterator<RowIdWithScore> scoredRowIdIterator, long segmentRowIdOffset) -
Method Summary
Methods inherited from class org.apache.cassandra.utils.AbstractIterator
endOfData, hasNext, next, peek, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
RowIdToPrimaryKeyWithScoreIterator
public RowIdToPrimaryKeyWithScoreIterator(ColumnMetadata column, PrimaryKeyMap.Factory primaryKeyMapFactory, CloseableIterator<RowIdWithScore> scoredRowIdIterator, long segmentRowIdOffset) throws IOException - Throws:
IOException
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classAbstractIterator<PrimaryKeyWithScore>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<PrimaryKeyWithScore>- Overrides:
closein classAbstractIterator<PrimaryKeyWithScore>
-