java.lang.Comparable<FieldValue>, FieldValue, RecordValue, Rowpublic interface PrimaryKey extends Row
TableAPI. It may contain all or
part of a primary key for its associated table. If a PrimaryKey is
partially filled the fields must be set in order of significance, as defined
by the list returned by getFields(). If an attempt is made to set a
field that is not part of the primary key IllegalArgumentException is
thrown.
PrimaryKey objects are constructed using
createPrimaryKey.
| Modifier and Type | Method | Description |
|---|---|---|
PrimaryKey |
clone() |
Returns a deep copy of this object.
|
java.util.List<java.lang.String> |
getFields() |
Returns an unmodifiable list of fields, in key order, that
comprise this key.
|
asArray, asBinary, asBoolean, asDouble, asEnum, asFixedBinary, asFloat, asIndexKey, asInteger, asLong, asMap, asNumber, asPrimaryKey, asRecord, asRow, asString, asTimestamp, getType, isArray, isAtomic, isBinary, isBoolean, isComplex, isDouble, isEMPTY, isEnum, isFixedBinary, isFloat, isIndexKey, isInteger, isJsonNull, isLong, isMap, isNull, isNumber, isNumeric, isPrimaryKey, isRecord, isRow, isString, isTimestamp, toJsonStringclear, contains, contains, copyFrom, get, get, getDefinition, getFieldName, getFieldNames, getFieldPos, isEmpty, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putArray, putArray, putArray, putArray, putArray, putArray, putArrayAsJson, putArrayAsJson, putArrayAsJson, putArrayAsJson, putEnum, putEnum, putFixed, putFixed, putJson, putJson, putJson, putJson, putJsonNull, putJsonNull, putMap, putMap, putMap, putMap, putMapAsJson, putMapAsJson, putMapAsJson, putMapAsJson, putNull, putNull, putNumber, putNumber, putNumber, putNumber, putNumber, putNumber, putNumber, putNumber, putNumber, putNumber, putRecord, putRecord, putRecord, putRecord, putRecordAsJson, putRecordAsJson, putRecordAsJson, putRecordAsJson, remove, size, toStringcreatePrimaryKey, equals, getExpirationTime, getTable, getTableVersion, getTTL, getVersion, setTTLPrimaryKey clone()
clone in interface FieldValueclone in interface RecordValueclone in interface Rowjava.util.List<java.lang.String> getFields()
Table.getPrimaryKey() for this instance's Table.getFields in interface RecordValueCopyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.