@Deprecated
public class KeySchema
extends java.lang.Object
implements java.io.Serializable
The KeySchema identifies the primary key as a one attribute primary key (hash) or a composite two attribute (hash-and-range) primary key. Single
attribute primary keys have one index value: a HashKeyElement .
A composite hash-and-range primary key contains two attribute values: a HashKeyElement and a RangeKeyElement .
| コンストラクタと説明 |
|---|
KeySchema()
非推奨です。
Default constructor for a new KeySchema object.
|
KeySchema(KeySchemaElement hashKeyElement)
非推奨です。
Constructs a new KeySchema object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj)
非推奨です。
|
KeySchemaElement |
getHashKeyElement()
非推奨です。
A hash key element is treated as the primary key, and can be a string
or a number.
|
KeySchemaElement |
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(KeySchemaElement hashKeyElement)
非推奨です。
A hash key element is treated as the primary key, and can be a string
or a number.
|
void |
setRangeKeyElement(KeySchemaElement 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.
|
KeySchema |
withHashKeyElement(KeySchemaElement hashKeyElement)
非推奨です。
A hash key element is treated as the primary key, and can be a string
or a number.
|
KeySchema |
withRangeKeyElement(KeySchemaElement 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 KeySchema()
public KeySchema(KeySchemaElement 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 KeySchemaElement getHashKeyElement()
String, Number,
StringSet, NumberSet.String, Number,
StringSet, NumberSet.public void setHashKeyElement(KeySchemaElement 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 KeySchema withHashKeyElement(KeySchemaElement 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 KeySchemaElement getRangeKeyElement()
String, Number, StringSet,
NumberSet.String, Number, StringSet,
NumberSet.public void setRangeKeyElement(KeySchemaElement 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 KeySchema withRangeKeyElement(KeySchemaElement 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