Class CompactionVectorValues

java.lang.Object
org.apache.cassandra.index.sai.disk.v1.vector.CompactionVectorValues
All Implemented Interfaces:
io.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>, RamAwareVectorValues

@NotThreadSafe public class CompactionVectorValues extends Object implements RamAwareVectorValues
  • Constructor Details

    • CompactionVectorValues

      public CompactionVectorValues(VectorType<Float> type)
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface io.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>
    • dimension

      public int dimension()
      Specified by:
      dimension in interface io.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>
    • vectorValue

      public float[] vectorValue(int i)
      Specified by:
      vectorValue in interface RamAwareVectorValues
      Specified by:
      vectorValue in interface io.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>
    • add

      public long add(int ordinal, ByteBuffer value)
      return approximate bytes used by the new vector
    • copy

      public CompactionVectorValues copy()
      Specified by:
      copy in interface io.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>
    • write

      public long write(SequentialWriter writer) throws IOException
      Throws:
      IOException
    • isValueShared

      public boolean isValueShared()
      Specified by:
      isValueShared in interface io.github.jbellis.jvector.graph.RandomAccessVectorValues<float[]>