Uses of Class
org.apache.lucene.codecs.KnnVectorsReader
Packages that use KnnVectorsReader
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
HNSW vector helper classes.
Lucene 10.2 file format.
Lucene 9.9 file format.
Postings format that can delegate to different formats per-field.
Code to maintain and access indices.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of KnnVectorsReader in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return KnnVectorsReaderModifier and TypeMethodDescriptionabstract KnnVectorsReader
KnnVectorsFormat.fieldsReader
(SegmentReadState state) Returns aKnnVectorsReader
to read the vectors from the index.KnnVectorsReader.getMergeInstance()
Returns an instance optimized for merging. -
Uses of KnnVectorsReader in org.apache.lucene.codecs.hnsw
Subclasses of KnnVectorsReader in org.apache.lucene.codecs.hnsw -
Uses of KnnVectorsReader in org.apache.lucene.codecs.lucene102
Methods in org.apache.lucene.codecs.lucene102 that return KnnVectorsReaderModifier and TypeMethodDescriptionLucene102HnswBinaryQuantizedVectorsFormat.fieldsReader
(SegmentReadState state) -
Uses of KnnVectorsReader in org.apache.lucene.codecs.lucene99
Subclasses of KnnVectorsReader in org.apache.lucene.codecs.lucene99Modifier and TypeClassDescriptionfinal class
Reads vectors from the index segments.final class
Reads vectors from the index segments along with index data structures supporting KNN search.final class
Reads Scalar Quantized vectors from the index segments along with index data structures.Methods in org.apache.lucene.codecs.lucene99 that return KnnVectorsReaderModifier and TypeMethodDescriptionLucene99HnswScalarQuantizedVectorsFormat.fieldsReader
(SegmentReadState state) Lucene99HnswVectorsFormat.fieldsReader
(SegmentReadState state) Lucene99HnswVectorsReader.getMergeInstance()
-
Uses of KnnVectorsReader in org.apache.lucene.codecs.perfield
Subclasses of KnnVectorsReader in org.apache.lucene.codecs.perfieldModifier and TypeClassDescriptionstatic class
VectorReader that can wrap multiple delegate readers, selected by field.Methods in org.apache.lucene.codecs.perfield that return KnnVectorsReaderModifier and TypeMethodDescriptionPerFieldKnnVectorsFormat.fieldsReader
(SegmentReadState state) PerFieldKnnVectorsFormat.FieldsReader.getFieldReader
(String field) Return the underlying VectorReader for the given fieldPerFieldKnnVectorsFormat.FieldsReader.getMergeInstance()
-
Uses of KnnVectorsReader in org.apache.lucene.index
Fields in org.apache.lucene.index declared as KnnVectorsReaderModifier and TypeFieldDescriptionfinal KnnVectorsReader[]
MergeState.knnVectorsReaders
Vector readers to mergeMethods in org.apache.lucene.index that return KnnVectorsReaderModifier and TypeMethodDescriptionabstract KnnVectorsReader
CodecReader.getVectorReader()
Expert: retrieve underlying VectorReaderFilterCodecReader.getVectorReader()
SegmentReader.getVectorReader()
SortingCodecReader.getVectorReader()
Constructors in org.apache.lucene.index with parameters of type KnnVectorsReaderModifierConstructorDescriptionMergeState
(MergeState.DocMap[] docMaps, SegmentInfo segmentInfo, FieldInfos mergeFieldInfos, StoredFieldsReader[] storedFieldsReaders, TermVectorsReader[] termVectorsReaders, NormsProducer[] normsProducers, DocValuesProducer[] docValuesProducers, FieldInfos[] fieldInfos, Bits[] liveDocs, FieldsProducer[] fieldsProducers, PointsReader[] pointsReaders, KnnVectorsReader[] knnVectorsReaders, int[] maxDocs, InfoStream infoStream, Executor intraMergeTaskExecutor, boolean needsIndexSort) Create a new merge instance. -
Uses of KnnVectorsReader in org.apache.lucene.util.hnsw
Methods in org.apache.lucene.util.hnsw that return KnnVectorsReaderModifier and TypeMethodDescriptionIncrementalHnswGraphMerger.GraphReader.reader()
Returns the value of thereader
record component.Methods in org.apache.lucene.util.hnsw with parameters of type KnnVectorsReaderModifier and TypeMethodDescriptionHnswGraphMerger.addReader
(KnnVectorsReader reader, MergeState.DocMap docMap, Bits liveDocs) Adds a reader to the graph merger to record the stateIncrementalHnswGraphMerger.addReader
(KnnVectorsReader reader, MergeState.DocMap docMap, Bits liveDocs) Adds a reader to the graph merger if it meets the following criteria: 1.Constructors in org.apache.lucene.util.hnsw with parameters of type KnnVectorsReaderModifierConstructorDescriptionprotected
GraphReader
(KnnVectorsReader reader, MergeState.DocMap initDocMap, int graphSize) Creates an instance of aGraphReader
record class.