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, waitcompareCanonicalClassNames, compareCanonicalClassNames, compareTo, compareWithNullsLast, isInRange, unsafeCompareCanonicalClassNamespublic 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()
BlueKeygetGroupingNumber in interface BlueKeypublic int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString in class java.lang.Objectpublic final int postGroupingNumberCompareTo(BlueKey other)
BlueKeypostGroupingNumberCompareTo in interface BlueKeypublic java.lang.Integer getIntegerIdIfPresent()
BlueKeygetIntegerIdIfPresent in interface BlueKeypublic java.lang.Long getLongIdIfPresent()
BlueKeygetLongIdIfPresent in interface BlueKey