Module org.elasticsearch.server
Class DirectIOLucene99FlatVectorsFormat
java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
org.apache.lucene.codecs.hnsw.FlatVectorsFormat
org.elasticsearch.index.codec.vectors.es818.DirectIOLucene99FlatVectorsFormat
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
public class DirectIOLucene99FlatVectorsFormat
extends org.apache.lucene.codecs.hnsw.FlatVectorsFormat
Copied from Lucene99FlatVectorsFormat in Lucene 10.1
This is copied to change the implementation of
fieldsReader(org.apache.lucene.index.SegmentReadState) only.
The codec format itself is not changed, so we keep the original NAME-
Field Summary
FieldsFields inherited from class org.apache.lucene.codecs.KnnVectorsFormat
DEFAULT_MAX_DIMENSIONS, EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDirectIOLucene99FlatVectorsFormat(org.apache.lucene.codecs.hnsw.FlatVectorsScorer vectorsScorer) Constructs a format -
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) toString()Methods inherited from class org.apache.lucene.codecs.hnsw.FlatVectorsFormat
getMaxDimensionsMethods inherited from class org.apache.lucene.codecs.KnnVectorsFormat
availableKnnVectorsFormats, forName, getName, reloadKnnVectorsFormat
-
Field Details
-
VERSION_START
public static final int VERSION_START- See Also:
-
VERSION_CURRENT
public static final int VERSION_CURRENT- See Also:
-
-
Constructor Details
-
DirectIOLucene99FlatVectorsFormat
public DirectIOLucene99FlatVectorsFormat(org.apache.lucene.codecs.hnsw.FlatVectorsScorer vectorsScorer) Constructs a format
-
-
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
-
toString
-