Modifier and Type | Method and Description |
---|---|
PrimaryKey |
PrimaryKey.addComponent(String keyAttributeName,
Object keyAttributeValue)
Add a key component to this primary key.
|
PrimaryKey |
PrimaryKey.addComponents(KeyAttribute... components)
Add one or multiple key components to this primary key.
|
Modifier and Type | Method and Description |
---|---|
List<PrimaryKey> |
TableKeysAndAttributes.getPrimaryKeys()
Return the list of primary keys (of the current table) to be included in
a batch get-item operation.
|
List<PrimaryKey> |
TableWriteItems.getPrimaryKeysToDelete()
Return the list of primary keys (of the current table) to be deleted in
a batch write operation.
|
Modifier and Type | Method and Description |
---|---|
TableKeysAndAttributes |
TableKeysAndAttributes.addPrimaryKey(PrimaryKey primaryKey)
Adds a primary key to be included in the batch get-item operation.
|
TableWriteItems |
TableWriteItems.addPrimaryKeyToDelete(PrimaryKey primaryKey)
Adds a primary key to be deleted in a batch write-item operation.
|
DeleteItemOutcome |
Table.deleteItem(PrimaryKey primaryKey) |
DeleteItemOutcome |
Table.deleteItem(PrimaryKey primaryKey,
DeleteItemExpressionSpec conditionExpressions) |
DeleteItemOutcome |
Table.deleteItem(PrimaryKey primaryKey,
Expected... expected) |
DeleteItemOutcome |
Table.deleteItem(PrimaryKey primaryKey,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
Item |
Table.getItem(PrimaryKey primaryKey) |
Item |
Table.getItem(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap) |
GetItemOutcome |
Table.getItemOutcome(PrimaryKey primaryKey) |
GetItemOutcome |
Table.getItemOutcome(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap) |
static Map<String,AttributeValue> |
ItemUtils.toAttributeValueMap(PrimaryKey primaryKey)
Converts the specified primary key into the low-level representation.
|
UpdateItemOutcome |
Table.updateItem(PrimaryKey primaryKey,
AttributeUpdate... attributeUpdates) |
UpdateItemOutcome |
Table.updateItem(PrimaryKey primaryKey,
Collection<Expected> expected,
AttributeUpdate... attributeUpdates) |
UpdateItemOutcome |
Table.updateItem(PrimaryKey primaryKey,
String updateExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
UpdateItemOutcome |
Table.updateItem(PrimaryKey primaryKey,
String updateExpression,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
Item |
Item.withPrimaryKey(PrimaryKey primaryKey)
Convenient methods - sets the attributes of this item from the given
key attributes.
|
TableKeysAndAttributes |
TableKeysAndAttributes.withPrimaryKeys(PrimaryKey... primaryKeys)
Used to specify multiple primary keys.
|
TableWriteItems |
TableWriteItems.withPrimaryKeysToDelete(PrimaryKey... primaryKeysToDelete)
Used to specify multiple primary keys to be deleted from the current
table.
|
Modifier and Type | Method and Description |
---|---|
DeleteItemOutcome |
DeleteItemApi.deleteItem(PrimaryKey primaryKey)
Deletes an item by primary key.
|
DeleteItemOutcome |
DeleteItemApi.deleteItem(PrimaryKey primaryKey,
Expected... expected)
Conditional delete with the specified primary key and expected
conditions.
|
DeleteItemOutcome |
DeleteItemApi.deleteItem(PrimaryKey primaryKey,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap)
Conditional delete with the specified primary key and condition
expression.
|
Item |
GetItemApi.getItem(PrimaryKey primaryKey)
Retrieves an item by primary key; or null if the item doesn't exist.
|
Item |
GetItemApi.getItem(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item using projection expression.
|
GetItemOutcome |
GetItemApi.getItemOutcome(PrimaryKey primaryKey)
Retrieves an item and the associated information by primary key.
|
GetItemOutcome |
GetItemApi.getItemOutcome(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap)
Retrieves an item and the associated information using projection
expression.
|
UpdateItemOutcome |
UpdateItemApi.updateItem(PrimaryKey primaryKey,
AttributeUpdate... attributeUpdates)
Updates an item with the attributes specified.
|
UpdateItemOutcome |
UpdateItemApi.updateItem(PrimaryKey primaryKey,
Collection<Expected> expected,
AttributeUpdate... attributeUpdates)
Updates an item with the attributes specified.
|
UpdateItemOutcome |
UpdateItemApi.updateItem(PrimaryKey primaryKey,
String updateExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap)
Performs an update on an item in the table using the given update
expression string.
|
UpdateItemOutcome |
UpdateItemApi.updateItem(PrimaryKey primaryKey,
String updateExpression,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap)
Updates an item with the specified primary key using the given
update expression provided the condition expression evaluates to true.
|
Modifier and Type | Method and Description |
---|---|
DeleteItemOutcome |
DeleteItemImpl.deleteItem(PrimaryKey primaryKey) |
DeleteItemOutcome |
DeleteItemImpl.deleteItem(PrimaryKey primaryKeys,
Expected... expected) |
DeleteItemOutcome |
DeleteItemImpl.deleteItem(PrimaryKey primaryKeys,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
Item |
GetItemImpl.getItem(PrimaryKey primaryKey) |
Item |
GetItemImpl.getItem(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap) |
GetItemOutcome |
GetItemImpl.getItemOutcome(PrimaryKey primaryKey) |
GetItemOutcome |
GetItemImpl.getItemOutcome(PrimaryKey primaryKey,
String projectionExpression,
Map<String,String> nameMap) |
static Map<String,AttributeValue> |
InternalUtils.toAttributeValueMap(PrimaryKey primaryKey)
Deprecated.
Converts the specified primary key into the low-level representation.
|
UpdateItemOutcome |
UpdateItemImpl.updateItem(PrimaryKey primaryKey,
AttributeUpdate... attributeUpdates) |
UpdateItemOutcome |
UpdateItemImpl.updateItem(PrimaryKey primaryKey,
Collection<Expected> expected,
AttributeUpdate... attributeUpdates) |
UpdateItemOutcome |
UpdateItemImpl.updateItem(PrimaryKey primaryKey,
String updateExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
UpdateItemOutcome |
UpdateItemImpl.updateItem(PrimaryKey primaryKey,
String updateExpression,
String conditionExpression,
Map<String,String> nameMap,
Map<String,Object> valueMap) |
Modifier and Type | Method and Description |
---|---|
QuerySpec |
QuerySpec.withExclusiveStartKey(PrimaryKey exclusiveStartKey) |
ScanSpec |
ScanSpec.withExclusiveStartKey(PrimaryKey exclusiveStartKey) |
DeleteItemSpec |
DeleteItemSpec.withPrimaryKey(PrimaryKey primaryKey) |
UpdateItemSpec |
UpdateItemSpec.withPrimaryKey(PrimaryKey primaryKey) |
AbstractSpecWithPrimaryKey<T> |
AbstractSpecWithPrimaryKey.withPrimaryKey(PrimaryKey primaryKey)
Sets the primary key.
|
GetItemSpec |
GetItemSpec.withPrimaryKey(PrimaryKey primaryKey) |
Copyright © 2019. All rights reserved.