public class IndexedKey
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable
Constructor and Description |
---|
IndexedKey(byte index,
java.lang.Object key) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object o)
If key is empty, we'd like compute equality based on key and index.
|
byte |
getIndex() |
java.lang.Object |
getKey() |
int |
hashCode()
Calculate hashCode by index and key
if key is empty, return index value
if key is not empty, return the key.hashCode()
|
void |
setSecondarySortOrder(boolean[] secondarySortOrder) |
void |
setUseSecondaryKey(boolean useSecondaryKey) |
java.lang.String |
toString() |
public byte getIndex()
public java.lang.Object getKey()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public void setUseSecondaryKey(boolean useSecondaryKey)
public void setSecondarySortOrder(boolean[] secondarySortOrder)
Copyright © 2007-2025 The Apache Software Foundation