public final class TimeFrameKey extends TimeKey
BlueCollection
or BlueIndex
. Values inserted with
this key will be ordered by start time. I-node usage will scale with the size of the timeframe that your data covers.nullSafeClassComparator
Constructor and Description |
---|
TimeFrameKey(long id,
long startTime,
long endTime) |
TimeFrameKey(java.lang.String id,
long startTime,
long endTime) |
TimeFrameKey(java.util.UUID id,
long startTime,
long endTime) |
TimeFrameKey(ValueKey key,
long startTime,
long endTime) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getEndTime() |
long |
getStartTime() |
int |
hashCode() |
boolean |
isInRange(long min,
long max)
Returns true if this key's grouping number is in the range [min, max] inclusive, else false
|
java.lang.String |
toString() |
getGroupingNumber, getId, getIntegerIdIfPresent, getLongIdIfPresent, getTime, postGroupingNumberCompareTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareCanonicalClassNames, compareCanonicalClassNames, compareTo, compareWithNullsLast, unsafeCompareCanonicalClassNames
public TimeFrameKey(long id, long startTime, long endTime)
public TimeFrameKey(java.lang.String id, long startTime, long endTime)
public TimeFrameKey(java.util.UUID id, long startTime, long endTime)
public TimeFrameKey(ValueKey key, long startTime, long endTime)
public int hashCode()
public boolean equals(java.lang.Object obj)
public boolean isInRange(long min, long max)
BlueKey
min
- the minimum grouping numbermax
- the maximum grouping numberpublic long getStartTime()
public long getEndTime()