Class VectorPostings<T>

java.lang.Object
org.apache.cassandra.index.sai.disk.v1.vector.VectorPostings<T>

public class VectorPostings<T> extends Object
  • Constructor Details

    • VectorPostings

      public VectorPostings(T firstKey)
  • Method Details

    • add

      public boolean add(T key)
    • shouldAppendDeletedOrdinal

      public boolean shouldAppendDeletedOrdinal()
      Returns:
      true if current ordinal is removed by partition/range deletion. Must be called after computeRowIds.
    • computeRowIds

      public void computeRowIds(Function<T,Integer> postingTransformer)
      Compute the rowIds corresponding to the <T> keys in this postings list.
    • getRowIds

      public org.agrona.collections.IntArrayList getRowIds()
      Returns:
      rowIds corresponding to the <T> keys in this postings list. Must be called after computeRowIds.
    • remove

      public long remove(T key)
    • ramBytesUsed

      public long ramBytesUsed()
    • emptyBytesUsed

      public static long emptyBytesUsed()
    • bytesPerPosting

      public static long bytesPerPosting()
    • size

      public int size()
    • getPostings

      public List<T> getPostings()
    • isEmpty

      public boolean isEmpty()
    • getOrdinal

      public int getOrdinal()