Module org.elasticsearch.server
Class DirectIOCapableLucene99FlatVectorsFormat
java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
org.apache.lucene.codecs.hnsw.FlatVectorsFormat
org.elasticsearch.index.codec.vectors.AbstractFlatVectorsFormat
org.elasticsearch.index.codec.vectors.DirectIOCapableFlatVectorsFormat
org.elasticsearch.index.codec.vectors.es93.DirectIOCapableLucene99FlatVectorsFormat
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.codec.vectors.DirectIOCapableFlatVectorsFormat
DirectIOCapableFlatVectorsFormat.DirectIOContext -
Field Summary
Fields inherited from class org.apache.lucene.codecs.KnnVectorsFormat
DEFAULT_MAX_DIMENSIONS, EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDirectIOCapableLucene99FlatVectorsFormat(org.apache.lucene.codecs.hnsw.FlatVectorsScorer vectorsScorer) Constructs a format -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.codecs.hnsw.FlatVectorsReadercreateReader(org.apache.lucene.index.SegmentReadState state) org.apache.lucene.codecs.hnsw.FlatVectorsReaderfieldsReader(org.apache.lucene.index.SegmentReadState state, boolean useDirectIO) org.apache.lucene.codecs.hnsw.FlatVectorsWriterfieldsWriter(org.apache.lucene.index.SegmentWriteState state) org.apache.lucene.codecs.hnsw.FlatVectorsScorerMethods inherited from class org.elasticsearch.index.codec.vectors.DirectIOCapableFlatVectorsFormat
canUseDirectIO, fieldsReaderMethods inherited from class org.elasticsearch.index.codec.vectors.AbstractFlatVectorsFormat
getMaxDimensions, toStringMethods inherited from class org.apache.lucene.codecs.KnnVectorsFormat
availableKnnVectorsFormats, forName, getName, reloadKnnVectorsFormat
-
Constructor Details
-
DirectIOCapableLucene99FlatVectorsFormat
public DirectIOCapableLucene99FlatVectorsFormat(org.apache.lucene.codecs.hnsw.FlatVectorsScorer vectorsScorer) Constructs a format
-
-
Method Details
-
flatVectorsScorer
public org.apache.lucene.codecs.hnsw.FlatVectorsScorer flatVectorsScorer()- Specified by:
flatVectorsScorerin classAbstractFlatVectorsFormat
-
createReader
protected org.apache.lucene.codecs.hnsw.FlatVectorsReader createReader(org.apache.lucene.index.SegmentReadState state) throws IOException - Specified by:
createReaderin classDirectIOCapableFlatVectorsFormat- Throws:
IOException
-
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, boolean useDirectIO) throws IOException - Overrides:
fieldsReaderin classDirectIOCapableFlatVectorsFormat- Throws:
IOException
-