public final class IntegerKey extends ValueKey
BlueCollection
or BlueIndex
. Values inserted with
this key will be ordered and will fill up an entire segment before creating a new one. I-node usage will grow
as new segments are needed.nullSafeClassComparator
Constructor and Description |
---|
IntegerKey(int id) |
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
|
int |
getId() |
java.lang.Integer |
getIntegerIdIfPresent()
Convenience method to get the underlying Integer value if this is a IntegerKey
|
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, getLongIdIfPresent, isInRange, unsafeCompareCanonicalClassNames
public int getId()
public long getGroupingNumber()
BlueKey
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object
public int postGroupingNumberCompareTo(BlueKey other)
BlueKey
public java.lang.Integer getIntegerIdIfPresent()
BlueKey