Class IVFVectorsReader.FieldEntry

java.lang.Object
org.elasticsearch.index.codec.vectors.diskbbq.IVFVectorsReader.FieldEntry
All Implemented Interfaces:
GenericFlatVectorReaders.Field
Enclosing class:
IVFVectorsReader

protected static class IVFVectorsReader.FieldEntry extends Object implements GenericFlatVectorReaders.Field
  • Field Details

    • rawVectorFormatName

      protected final String rawVectorFormatName
    • useDirectIOReads

      protected final boolean useDirectIOReads
    • similarityFunction

      protected final org.apache.lucene.index.VectorSimilarityFunction similarityFunction
    • vectorEncoding

      protected final org.apache.lucene.index.VectorEncoding vectorEncoding
    • numCentroids

      protected final int numCentroids
    • centroidOffset

      protected final long centroidOffset
    • centroidLength

      protected final long centroidLength
    • postingListOffset

      protected final long postingListOffset
    • postingListLength

      protected final long postingListLength
    • globalCentroid

      protected final float[] globalCentroid
    • globalCentroidDp

      protected final float globalCentroidDp
  • Constructor Details

    • FieldEntry

      protected FieldEntry(String rawVectorFormatName, boolean useDirectIOReads, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, org.apache.lucene.index.VectorEncoding vectorEncoding, int numCentroids, long centroidOffset, long centroidLength, long postingListOffset, long postingListLength, float[] globalCentroid, float globalCentroidDp)
  • Method Details

    • rawVectorFormatName

      public String rawVectorFormatName()
      Specified by:
      rawVectorFormatName in interface GenericFlatVectorReaders.Field
    • useDirectIOReads

      public boolean useDirectIOReads()
      Specified by:
      useDirectIOReads in interface GenericFlatVectorReaders.Field
    • numCentroids

      public int numCentroids()
    • globalCentroid

      public float[] globalCentroid()
    • globalCentroidDp

      public float globalCentroidDp()
    • similarityFunction

      public org.apache.lucene.index.VectorSimilarityFunction similarityFunction()
    • centroidSlice

      public org.apache.lucene.store.IndexInput centroidSlice(org.apache.lucene.store.IndexInput centroidFile) throws IOException
      Throws:
      IOException
    • postingListSlice

      public org.apache.lucene.store.IndexInput postingListSlice(org.apache.lucene.store.IndexInput postingListFile) throws IOException
      Throws:
      IOException