Class DirectIOLucene99FlatVectorsFormat

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.es818.DirectIOLucene99FlatVectorsFormat
All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI

public class DirectIOLucene99FlatVectorsFormat extends AbstractFlatVectorsFormat
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class org.elasticsearch.index.codec.vectors.AbstractFlatVectorsFormat

    USE_DIRECT_IO

    Fields inherited from class org.apache.lucene.codecs.KnnVectorsFormat

    DEFAULT_MAX_DIMENSIONS, EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    DirectIOLucene99FlatVectorsFormat(org.apache.lucene.codecs.hnsw.FlatVectorsScorer vectorsScorer)
    Constructs a format
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.codecs.hnsw.FlatVectorsReader
    fieldsReader(org.apache.lucene.index.SegmentReadState state)
     
    org.apache.lucene.codecs.hnsw.FlatVectorsWriter
    fieldsWriter(org.apache.lucene.index.SegmentWriteState state)
     
    protected org.apache.lucene.codecs.hnsw.FlatVectorsScorer
     

    Methods inherited from class org.elasticsearch.index.codec.vectors.AbstractFlatVectorsFormat

    getMaxDimensions, toString

    Methods inherited from class org.apache.lucene.codecs.KnnVectorsFormat

    availableKnnVectorsFormats, forName, getName, reloadKnnVectorsFormat

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • DirectIOLucene99FlatVectorsFormat

      public DirectIOLucene99FlatVectorsFormat(org.apache.lucene.codecs.hnsw.FlatVectorsScorer vectorsScorer)
      Constructs a format
  • Method Details

    • flatVectorsScorer

      protected org.apache.lucene.codecs.hnsw.FlatVectorsScorer flatVectorsScorer()
      Specified by:
      flatVectorsScorer in class AbstractFlatVectorsFormat
    • fieldsWriter

      public org.apache.lucene.codecs.hnsw.FlatVectorsWriter fieldsWriter(org.apache.lucene.index.SegmentWriteState state) throws IOException
      Specified by:
      fieldsWriter in class org.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:
      fieldsReader in class org.apache.lucene.codecs.hnsw.FlatVectorsFormat
      Throws:
      IOException