|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodb.model.Key
public class Key
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.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
equals(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. |
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public AttributeValue getHashKeyElement()
public void setHashKeyElement(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 withHashKeyElement(AttributeValue hashKeyElement)
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()
public void setRangeKeyElement(AttributeValue rangeKeyElement)
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)
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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |