Package org.apache.druid.frame.key
Class RowKey
- java.lang.Object
-
- org.apache.druid.frame.key.RowKey
-
public class RowKey extends Object
Represents a specific sorting or hashing key. Instances of this class wrap a byte array in row-based frame format.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
array()
Get the backing array for this key (not a copy).static RowKey
empty()
boolean
equals(Object o)
int
estimatedObjectSizeBytes()
Estimate number of bytes taken by the key array.int
hashCode()
long
longHashCode()
String
toString()
static RowKey
wrap(byte[] row)
Create a key from a byte array.
-
-
-
Method Detail
-
wrap
public static RowKey wrap(byte[] row)
Create a key from a byte array. The array will be owned by the resulting key object.
-
empty
public static RowKey empty()
-
array
public byte[] array()
Get the backing array for this key (not a copy).
-
longHashCode
public long longHashCode()
-
estimatedObjectSizeBytes
public int estimatedObjectSizeBytes()
Estimate number of bytes taken by the key array. Only returns an estimate and does not account for platform or JVM specific implementation.
-
-