public class IndexedKey extends Object implements Serializable, Comparable
Constructor and Description |
---|
IndexedKey(byte index,
Object key) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o)
If key is empty, we'd like compute equality based on key and index.
|
byte |
getIndex() |
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) |
String |
toString() |
public IndexedKey(byte index, Object key)
public byte getIndex()
public Object getKey()
public boolean equals(Object o)
public int hashCode()
public int compareTo(Object o)
compareTo
in interface Comparable
public void setUseSecondaryKey(boolean useSecondaryKey)
public void setSecondarySortOrder(boolean[] secondarySortOrder)
Copyright © 2007-2017 The Apache Software Foundation