Class IncrementalIndexRow

java.lang.Object
org.apache.druid.segment.incremental.IncrementalIndexRow

public final class IncrementalIndexRow extends Object
  • Field Details

  • Method Details

    • getTimestamp

      public long getTimestamp()
    • getDims

      public Object[] getDims()
    • getRowIndex

      public int getRowIndex()
    • estimateBytesInMemory

      public long estimateBytesInMemory()
      bytesInMemory estimates the size of IncrementalIndexRow key, it takes into account the timestamp(long), dims(Object Array) and dimensionDescsList(List). Each of these are calculated as follows:
      • timestamp : Long.BYTES
      • dims array : Integer.BYTES * array length + Long.BYTES (dims object) + dimsKeySize(passed via constructor)
      • dimensionDescList : Long.BYTES (shared pointer)
      • dimsKeySize : this value is passed in based on the key type (int, long, double, String etc.)
      Returns:
      long estimated bytesInMemory
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object