Module org.elasticsearch.server
Class ES94HnswScalarQuantizedVectorsFormat
java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
org.elasticsearch.index.codec.vectors.AbstractHnswVectorsFormat
org.elasticsearch.index.codec.vectors.es94.ES94HnswScalarQuantizedVectorsFormat
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
-
Field Summary
Fields inherited from class org.elasticsearch.index.codec.vectors.AbstractHnswVectorsFormat
beamWidth, DEFAULT_HNSW_GRAPH_THRESHOLD, hnswGraphThreshold, maxConn, mergeExec, numMergeWorkersFields inherited from class org.apache.lucene.codecs.KnnVectorsFormat
DEFAULT_MAX_DIMENSIONS, EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionES94HnswScalarQuantizedVectorsFormat(int maxConn, int beamWidth, DenseVectorFieldMapper.ElementType elementType, int bits, boolean useDirectIO) ES94HnswScalarQuantizedVectorsFormat(int maxConn, int beamWidth, DenseVectorFieldMapper.ElementType elementType, int bits, boolean useDirectIO, int numMergeWorkers, ExecutorService mergeExec) ES94HnswScalarQuantizedVectorsFormat(int maxConn, int beamWidth, DenseVectorFieldMapper.ElementType elementType, int bits, boolean useDirectIO, int numMergeWorkers, ExecutorService mergeExec, int hnswGraphThreshold) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.KnnVectorsReaderfieldsReader(org.apache.lucene.index.SegmentReadState state) org.apache.lucene.codecs.KnnVectorsWriterfieldsWriter(org.apache.lucene.index.SegmentWriteState state) protected org.apache.lucene.codecs.hnsw.FlatVectorsFormatMethods inherited from class org.elasticsearch.index.codec.vectors.AbstractHnswVectorsFormat
getMaxDimensions, resolveThreshold, toStringMethods inherited from class org.apache.lucene.codecs.KnnVectorsFormat
availableKnnVectorsFormats, forName, getName, reloadKnnVectorsFormat
-
Constructor Details
-
ES94HnswScalarQuantizedVectorsFormat
public ES94HnswScalarQuantizedVectorsFormat() -
ES94HnswScalarQuantizedVectorsFormat
public ES94HnswScalarQuantizedVectorsFormat(int maxConn, int beamWidth, DenseVectorFieldMapper.ElementType elementType, int bits, boolean useDirectIO) -
ES94HnswScalarQuantizedVectorsFormat
public ES94HnswScalarQuantizedVectorsFormat(int maxConn, int beamWidth, DenseVectorFieldMapper.ElementType elementType, int bits, boolean useDirectIO, int numMergeWorkers, ExecutorService mergeExec) -
ES94HnswScalarQuantizedVectorsFormat
public ES94HnswScalarQuantizedVectorsFormat(int maxConn, int beamWidth, DenseVectorFieldMapper.ElementType elementType, int bits, boolean useDirectIO, int numMergeWorkers, ExecutorService mergeExec, int hnswGraphThreshold)
-
-
Method Details
-
flatVectorsFormat
protected org.apache.lucene.codecs.hnsw.FlatVectorsFormat flatVectorsFormat()- Specified by:
flatVectorsFormatin classAbstractHnswVectorsFormat
-
fieldsWriter
public org.apache.lucene.codecs.KnnVectorsWriter fieldsWriter(org.apache.lucene.index.SegmentWriteState state) throws IOException - Specified by:
fieldsWriterin classorg.apache.lucene.codecs.KnnVectorsFormat- Throws:
IOException
-
fieldsReader
public org.apache.lucene.codecs.KnnVectorsReader fieldsReader(org.apache.lucene.index.SegmentReadState state) throws IOException - Specified by:
fieldsReaderin classorg.apache.lucene.codecs.KnnVectorsFormat- Throws:
IOException
-