@Deprecated
public class Key
extends java.lang.Object
implements java.io.Serializable
The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.
| コンストラクタと説明 |
|---|
Key()
非推奨です。
Default constructor for a new Key object.
|
Key(AttributeValue hashKeyElement)
非推奨です。
Constructs a new Key object.
|
Key(AttributeValue hashKeyElement,
AttributeValue rangeKeyElement)
非推奨です。
Constructs a new Key object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj)
非推奨です。
|
AttributeValue |
getHashKeyElement()
非推奨です。
A hash key element is treated as the primary key, and can be a string
or a number.
|
AttributeValue |
getRangeKeyElement()
非推奨です。
A range key element is treated as a secondary key (used in conjunction
with the primary key), and can be a string or a number, and is only
used for hash-and-range primary keys.
|
int |
hashCode()
非推奨です。
|
void |
setHashKeyElement(AttributeValue hashKeyElement)
非推奨です。
A hash key element is treated as the primary key, and can be a string
or a number.
|
void |
setRangeKeyElement(AttributeValue rangeKeyElement)
非推奨です。
A range key element is treated as a secondary key (used in conjunction
with the primary key), and can be a string or a number, and is only
used for hash-and-range primary keys.
|
java.lang.String |
toString()
非推奨です。
Returns a string representation of this object; useful for testing and
debugging.
|
Key |
withHashKeyElement(AttributeValue hashKeyElement)
非推奨です。
A hash key element is treated as the primary key, and can be a string
or a number.
|
Key |
withRangeKeyElement(AttributeValue rangeKeyElement)
非推奨です。
A range key element is treated as a secondary key (used in conjunction
with the primary key), and can be a string or a number, and is only
used for hash-and-range primary keys.
|
public Key()
public Key(AttributeValue hashKeyElement)
hashKeyElement - A hash key element is treated as the primary
key, and can be a string or a number. Single attribute primary keys
have one index value. The value can be String,
Number, StringSet, NumberSet.public Key(AttributeValue hashKeyElement, AttributeValue rangeKeyElement)
hashKeyElement - A hash key element is treated as the primary
key, and can be a string or a number. Single attribute primary keys
have one index value. The value can be String,
Number, StringSet, NumberSet.rangeKeyElement - A range key element is treated as a secondary
key (used in conjunction with the primary key), and can be a string or
a number, and is only used for hash-and-range primary keys. The value
can be String, Number,
StringSet, NumberSet.public AttributeValue getHashKeyElement()
String, Number,
StringSet, NumberSet.String, Number,
StringSet, NumberSet.public void setHashKeyElement(AttributeValue hashKeyElement)
String, Number,
StringSet, NumberSet.hashKeyElement - A hash key element is treated as the primary key, and can be a string
or a number. Single attribute primary keys have one index value. The
value can be String, Number,
StringSet, NumberSet.public Key withHashKeyElement(AttributeValue hashKeyElement)
String, Number,
StringSet, NumberSet.
Returns a reference to this object so that method calls can be chained together.
hashKeyElement - A hash key element is treated as the primary key, and can be a string
or a number. Single attribute primary keys have one index value. The
value can be String, Number,
StringSet, NumberSet.public AttributeValue getRangeKeyElement()
String, Number, StringSet,
NumberSet.String, Number, StringSet,
NumberSet.public void setRangeKeyElement(AttributeValue rangeKeyElement)
String, Number, StringSet,
NumberSet.rangeKeyElement - A range key element is treated as a secondary key (used in conjunction
with the primary key), and can be a string or a number, and is only
used for hash-and-range primary keys. The value can be
String, Number, StringSet,
NumberSet.public Key withRangeKeyElement(AttributeValue rangeKeyElement)
String, Number, StringSet,
NumberSet.
Returns a reference to this object so that method calls can be chained together.
rangeKeyElement - A range key element is treated as a secondary key (used in conjunction
with the primary key), and can be a string or a number, and is only
used for hash-and-range primary keys. The value can be
String, Number, StringSet,
NumberSet.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object