Class IncrementalIndexRow
- java.lang.Object
-
- org.apache.druid.segment.incremental.IncrementalIndexRow
-
public final class IncrementalIndexRow extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
EMPTY_ROW_INDEX
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
long
estimateBytesInMemory()
bytesInMemory estimates the size of IncrementalIndexRow key, it takes into account the timestamp(long), dims(Object Array) and dimensionDescsList(List).Object[]
getDims()
int
getRowIndex()
long
getTimestamp()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
EMPTY_ROW_INDEX
public static final int EMPTY_ROW_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-