Class DirectIOCapableFlatVectorsFormat

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
All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
Direct Known Subclasses:
DirectIOCapableLucene99FlatVectorsFormat, ES93BFloat16FlatVectorsFormat

public abstract class DirectIOCapableFlatVectorsFormat extends AbstractFlatVectorsFormat
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     
  • Field Summary

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

    DEFAULT_MAX_DIMENSIONS, EMPTY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static boolean
    canUseDirectIO(org.apache.lucene.index.SegmentReadState state)
     
    protected abstract org.apache.lucene.codecs.hnsw.FlatVectorsReader
    createReader(org.apache.lucene.index.SegmentReadState state)
     
    org.apache.lucene.codecs.hnsw.FlatVectorsReader
    fieldsReader(org.apache.lucene.index.SegmentReadState state)
     
    org.apache.lucene.codecs.hnsw.FlatVectorsReader
    fieldsReader(org.apache.lucene.index.SegmentReadState state, boolean useDirectIO)
     

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

    flatVectorsScorer, getMaxDimensions, toString

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

    fieldsWriter

    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
  • Constructor Details

    • DirectIOCapableFlatVectorsFormat

      protected DirectIOCapableFlatVectorsFormat(String name)
  • Method Details

    • createReader

      protected abstract org.apache.lucene.codecs.hnsw.FlatVectorsReader createReader(org.apache.lucene.index.SegmentReadState state) throws IOException
      Throws:
      IOException
    • canUseDirectIO

      protected static boolean canUseDirectIO(org.apache.lucene.index.SegmentReadState state)
    • 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
    • fieldsReader

      public org.apache.lucene.codecs.hnsw.FlatVectorsReader fieldsReader(org.apache.lucene.index.SegmentReadState state, boolean useDirectIO) throws IOException
      Throws:
      IOException