Class NodeScoreToRowIdWithScoreIterator
java.lang.Object
org.apache.cassandra.utils.AbstractIterator<RowIdWithScore>
org.apache.cassandra.index.sai.disk.v1.vector.NodeScoreToRowIdWithScoreIterator
- All Implemented Interfaces:
com.google.common.collect.PeekingIterator<RowIdWithScore>,AutoCloseable,Iterator<RowIdWithScore>,CloseableIterator<RowIdWithScore>
An iterator over
RowIdWithScore sorted by score descending. The iterator converts ordinals (node ids) to
segment row ids and pairs them with the score given by the index.-
Constructor Summary
ConstructorsConstructorDescriptionNodeScoreToRowIdWithScoreIterator(CloseableIterator<io.github.jbellis.jvector.graph.SearchResult.NodeScore> nodeScores, OnDiskOrdinalsMap.RowIdsView rowIdsView) -
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
-
NodeScoreToRowIdWithScoreIterator
public NodeScoreToRowIdWithScoreIterator(CloseableIterator<io.github.jbellis.jvector.graph.SearchResult.NodeScore> nodeScores, OnDiskOrdinalsMap.RowIdsView rowIdsView)
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classAbstractIterator<RowIdWithScore>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<RowIdWithScore>- Overrides:
closein classAbstractIterator<RowIdWithScore>
-