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

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

    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)
     
     

    Methods inherited from class org.apache.lucene.codecs.hnsw.FlatVectorsFormat

    getMaxDimensions

    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

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object