@Deprecated public class Key extends Object implements 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.
Constructor and Description |
---|
Key()
Deprecated.
Default constructor for a new Key object.
|
Key(AttributeValue hashKeyElement)
Deprecated.
Constructs a new Key object.
|
Key(AttributeValue hashKeyElement,
AttributeValue rangeKeyElement)
Deprecated.
Constructs a new Key object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Deprecated.
|
AttributeValue |
getHashKeyElement()
Deprecated.
A hash key element is treated as the primary key, and can be a string
or a number.
|
AttributeValue |
getRangeKeyElement()
Deprecated.
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()
Deprecated.
|
void |
setHashKeyElement(AttributeValue hashKeyElement)
Deprecated.
A hash key element is treated as the primary key, and can be a string
or a number.
|
void |
setRangeKeyElement(AttributeValue rangeKeyElement)
Deprecated.
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()
Deprecated.
Returns a string representation of this object; useful for testing and
debugging.
|
Key |
withHashKeyElement(AttributeValue hashKeyElement)
Deprecated.
A hash key element is treated as the primary key, and can be a string
or a number.
|
Key |
withRangeKeyElement(AttributeValue rangeKeyElement)
Deprecated.
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 String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.