public class TimeKey extends java.lang.Object implements BlueKey
BlueCollection
or BlueIndex
. Values inserted with
this key will be ordered by time. I-node usage will scale with the size of the timeframe that your data covers.nullSafeClassComparator
Constructor and Description |
---|
TimeKey(long id,
long time) |
TimeKey(java.lang.String id,
long time) |
TimeKey(java.util.UUID id,
long time) |
TimeKey(ValueKey id,
long time) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getGroupingNumber()
Returns the grouping number which helps to determine the order and location of the key/value pairs on disk
|
ValueKey |
getId() |
java.lang.Integer |
getIntegerIdIfPresent()
Convenience method to get the underlying Integer value if this is a IntegerKey
|
java.lang.Long |
getLongIdIfPresent()
Convenience method to get the underlying Long value if this is a LongKey
|
long |
getTime() |
int |
hashCode() |
int |
postGroupingNumberCompareTo(BlueKey other)
This is used to order the key/value pairs on disk.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareCanonicalClassNames, compareCanonicalClassNames, compareTo, compareWithNullsLast, isInRange, unsafeCompareCanonicalClassNames
public TimeKey(long id, long time)
public TimeKey(java.lang.String id, long time)
public TimeKey(java.util.UUID id, long time)
public TimeKey(ValueKey id, long time)
public ValueKey getId()
public long getTime()
public final long getGroupingNumber()
BlueKey
getGroupingNumber
in interface BlueKey
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object
public final int postGroupingNumberCompareTo(BlueKey other)
BlueKey
postGroupingNumberCompareTo
in interface BlueKey
public java.lang.Integer getIntegerIdIfPresent()
BlueKey
getIntegerIdIfPresent
in interface BlueKey
public java.lang.Long getLongIdIfPresent()
BlueKey
getLongIdIfPresent
in interface BlueKey