public class OraCollationKey extends Object implements Comparable
OraCollationKey class represents a String object under control of a specific OraCollator object. This construct is used to store a sorting order under a certain sorting rule and to be compared when needed.OraCollator| Modifier and Type | Field and Description |
|---|---|
protected int |
primIdx |
protected int |
secIdx |
protected int |
terIdx |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares this
OraCollationKey object with the specified Object object. |
int |
compareTo(OraCollationKey target)
Compare this
OraCollationKey object to the target OraCollationKey object. |
boolean |
equals(Object target)
Determines if this
OraCollationKey object and the target OraCollationKey object are equal. |
int |
getNextMonoKeys(byte[] keyArray) |
int[] |
getNextMultiKeys(byte[] keyArray) |
String |
getSourceString()
Returns the source
String object that this OraCollationKey object represents. |
int |
hashCode()
Creates a hash code for this
OraCollationKey object; the value is calculated on the key, not the source string. |
byte[] |
toByteArray()
Converts the
OraCollationKey object to a sequence of bytes. |
public int compareTo(OraCollationKey target)
OraCollationKey object to the target OraCollationKey object. The collation rules of the OraCollator object that created these keys are applied. OraCollationKey objects created by different OraCollator objects cannot be compared.target - the target OraCollationKeyOraCollator.GREATER, OraCollator.LESS, or OraCollator.EQUALOraCollator.compare(java.lang.Object, java.lang.Object)public int compareTo(Object o)
OraCollationKey object with the specified Object object.compareTo in interface Comparableo - the Object object to which the OraCollationKey object is comparedOraCollator.GREATER, OraCollator.LESS, or OraCollator.EQUALpublic boolean equals(Object target)
OraCollationKey object and the target OraCollationKey object are equal.public int hashCode()
OraCollationKey object; the value is calculated on the key, not the source string.public String getSourceString()
String object that this OraCollationKey object represents.String objectpublic byte[] toByteArray()
OraCollationKey object to a sequence of bytes.OraCollationKey objectpublic int[] getNextMultiKeys(byte[] keyArray)
public int getNextMonoKeys(byte[] keyArray)