T - The type of the id of this key. Existing types include UUID and String.public abstract class HashGroupedKey<T extends java.lang.Comparable<T>> extends ValueKey
BlueCollection or BlueIndex. The hashcode of these keys
is used to determine the location of the corresponding values on disk. Collections with this type of key will
be unordered and if the hash is good then they will be spread fairly evenly across the collection segments. This
means that there will be few collisions and high i-node usage. UUIDKey and StringKeynullSafeClassComparator| Constructor and Description |
|---|
HashGroupedKey() |
| 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
|
abstract T |
getId() |
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, getIntegerIdIfPresent, getLongIdIfPresent, isInRange, unsafeCompareCanonicalClassNamespublic abstract T getId()
public final int hashCode()
public final java.lang.String toString()
toString in class java.lang.Objectpublic final int postGroupingNumberCompareTo(BlueKey other)
BlueKeypublic final long getGroupingNumber()
BlueKey