public class PrimaryKey extends Object
Constructor | Description |
---|---|
PrimaryKey() |
|
PrimaryKey(String hashKeyName,
Object hashKeyValue) |
Constructs with a hash key.
|
PrimaryKey(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue) |
Constructs with a hash key and a range key.
|
PrimaryKey(KeyAttribute... components) |
Constructs with the specified key components.
|
Modifier and Type | Method | Description |
---|---|---|
PrimaryKey |
addComponent(String keyAttributeName,
Object keyAttributeValue) |
Add a key component to this primary key.
|
PrimaryKey |
addComponents(KeyAttribute... components) |
Add one or multiple key components to this primary key.
|
boolean |
equals(Object in) |
|
Set<String> |
getComponentNameSet() |
Returns all the key component names of this primary key as a set.
|
Collection<KeyAttribute> |
getComponents() |
Returns all the key components of this primary key.
|
boolean |
hasComponent(String attrName) |
Returns true if this primary has the specified key attribute name;
false otherwise.
|
int |
hashCode() |
|
String |
toString() |
public PrimaryKey()
public PrimaryKey(KeyAttribute... components)
public Collection<KeyAttribute> getComponents()
public Set<String> getComponentNameSet()
public boolean hasComponent(String attrName)
public PrimaryKey addComponents(KeyAttribute... components)
public PrimaryKey addComponent(String keyAttributeName, Object keyAttributeValue)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.