Module org.elasticsearch.server
Class ES816BinaryQuantizedVectorsFormat
java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
org.apache.lucene.codecs.hnsw.FlatVectorsFormat
org.elasticsearch.index.codec.vectors.es816.ES816BinaryQuantizedVectorsFormat
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
public class ES816BinaryQuantizedVectorsFormat
extends org.apache.lucene.codecs.hnsw.FlatVectorsFormat
Copied from Lucene, replace with Lucene's implementation sometime after Lucene 10
-
Field Summary
FieldsFields inherited from class org.apache.lucene.codecs.KnnVectorsFormat
DEFAULT_MAX_DIMENSIONS, EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with the default number of vectors per cluster. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.hnsw.FlatVectorsReaderfieldsReader(org.apache.lucene.index.SegmentReadState state) org.apache.lucene.codecs.hnsw.FlatVectorsWriterfieldsWriter(org.apache.lucene.index.SegmentWriteState state) intgetMaxDimensions(String fieldName) toString()Methods inherited from class org.apache.lucene.codecs.KnnVectorsFormat
availableKnnVectorsFormats, forName, getName, reloadKnnVectorsFormat
-
Field Details
-
BINARIZED_VECTOR_COMPONENT
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
ES816BinaryQuantizedVectorsFormat
public ES816BinaryQuantizedVectorsFormat()Creates a new instance with the default number of vectors per cluster.
-
-
Method Details
-
fieldsWriter
public org.apache.lucene.codecs.hnsw.FlatVectorsWriter fieldsWriter(org.apache.lucene.index.SegmentWriteState state) throws IOException - Specified by:
fieldsWriterin classorg.apache.lucene.codecs.hnsw.FlatVectorsFormat- Throws:
IOException
-
fieldsReader
public org.apache.lucene.codecs.hnsw.FlatVectorsReader fieldsReader(org.apache.lucene.index.SegmentReadState state) throws IOException - Specified by:
fieldsReaderin classorg.apache.lucene.codecs.hnsw.FlatVectorsFormat- Throws:
IOException
-
getMaxDimensions
- Overrides:
getMaxDimensionsin classorg.apache.lucene.codecs.hnsw.FlatVectorsFormat
-
toString
-