Package oracle.kv.table
Class KeyPair
java.lang.Object
oracle.kv.table.KeyPair
- All Implemented Interfaces:
Comparable<KeyPair>
A wrapper class for return values from
TableAPI.tableKeysIterator(IndexKey, MultiRowOptions, oracle.kv.table.TableIteratorOptions)
This classes allows the iterator to return all field value information that
can be obtained directly from the index without an additional fetch.
Note: this class has a natural ordering that is inconsistent with
equals. Ordering is based on the indexKey only.- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionint
Compares the IndexKey of this object with the IndexKey of the specified object for order.Returns the IndexKey from the pair.Returns the PrimaryKey from the pair.
-
Method Details
-
getPrimaryKey
Returns the PrimaryKey from the pair.- Returns:
- the PrimaryKey
-
getIndexKey
Returns the IndexKey from the pair.- Returns:
- the IndexKey
-
compareTo
Compares the IndexKey of this object with the IndexKey of the specified object for order. If the IndexKey values are the same a secondary comparison is done on the PrimaryKey values.- Specified by:
compareTo
in interfaceComparable<KeyPair>
-
toJsonString
-