Package org.apache.lucene.search.knn
Class KnnSearchStrategy.Seeded
java.lang.Object
org.apache.lucene.search.knn.KnnSearchStrategy
org.apache.lucene.search.knn.KnnSearchStrategy.Seeded
- Enclosing class:
KnnSearchStrategy
A strategy for kNN search that uses a set of entry points to start the search
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.knn.KnnSearchStrategy
KnnSearchStrategy.Hnsw, KnnSearchStrategy.Patience, KnnSearchStrategy.Seeded -
Field Summary
Fields inherited from class org.apache.lucene.search.knn.KnnSearchStrategy
DEFAULT_FILTERED_SEARCH_THRESHOLD -
Constructor Summary
ConstructorsConstructorDescriptionSeeded(DocIdSetIterator entryPoints, int numberOfEntryPoints, KnnSearchStrategy originalStrategy) -
Method Summary
Modifier and TypeMethodDescriptionIterator of valid entry points for the kNN searchbooleanOverride and implement search strategy instance equivalence properly in a subclass.inthashCode()Override and implement search strategy hash code properly in a subclass.voidSignal processing of the next block of vectors.intNumber of valid entry points for the kNN searchOriginal strategy to use after seeding
-
Constructor Details
-
Seeded
public Seeded(DocIdSetIterator entryPoints, int numberOfEntryPoints, KnnSearchStrategy originalStrategy)
-
-
Method Details
-
entryPoints
Iterator of valid entry points for the kNN search- Returns:
- DocIdSetIterator of entry points
-
numberOfEntryPoints
public int numberOfEntryPoints()Number of valid entry points for the kNN search- Returns:
- number of entry points
-
originalStrategy
Original strategy to use after seeding- Returns:
- original strategy
-
equals
Description copied from class:KnnSearchStrategyOverride and implement search strategy instance equivalence properly in a subclass.- Specified by:
equalsin classKnnSearchStrategy
-
hashCode
public int hashCode()Description copied from class:KnnSearchStrategyOverride and implement search strategy hash code properly in a subclass.- Specified by:
hashCodein classKnnSearchStrategy- See Also:
-
nextVectorsBlock
public void nextVectorsBlock()Description copied from class:KnnSearchStrategySignal processing of the next block of vectors.- Specified by:
nextVectorsBlockin classKnnSearchStrategy
-