public class TableWriteItems extends Object
BatchWriteItem
request.Constructor and Description |
---|
TableWriteItems(String tableName) |
Modifier and Type | Method and Description |
---|---|
TableWriteItems |
addHashAndRangePrimaryKeysToDelete(String hashKeyName,
String rangeKeyName,
Object... alternatingHashRangeKeyValues)
Adds multiple hash-and-range primary keys to be deleted in a batch
write operation.
|
TableWriteItems |
addHashAndRangePrimaryKeyToDelete(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Adds a primary key (that consists of a hash-key and a range-key) to be
deleted in a batch write operation.
|
TableWriteItems |
addHashOnlyPrimaryKeysToDelete(String hashKeyName,
Object... hashKeyValues)
Adds multiple hash-only primary keys to be deleted in a batch write
operation.
|
TableWriteItems |
addHashOnlyPrimaryKeyToDelete(String hashKeyName,
Object hashKeyValue)
Adds a hash-only primary key to be deleted in a batch write
operation.
|
TableWriteItems |
addItemToPut(Item item)
Adds an item to be put to the current table in a batch write operation.
|
TableWriteItems |
addPrimaryKeyToDelete(PrimaryKey primaryKey)
Adds a primary key to be deleted in a batch write-item operation.
|
Collection<Item> |
getItemsToPut()
Returns the collection of items to be put in the current table in
a batch write operation.
|
List<PrimaryKey> |
getPrimaryKeysToDelete()
Return the list of primary keys (of the current table) to be deleted in
a batch write operation.
|
String |
getTableName() |
TableWriteItems |
withHashAndRangeKeysToDelete(String hashKeyName,
String rangeKeyName,
Object... alternatingHashAndRangeKeyValues)
Used to specify multiple hash-and-range primary keys to be deleted
from the current table.
|
TableWriteItems |
withHashOnlyKeysToDelete(String hashKeyName,
Object... hashKeyValues)
Used to specify multiple hash-only primary keys to be deleted from the
current table.
|
TableWriteItems |
withItemsToPut(Collection<Item> itemsToPut)
Used to specify the collection of items to be put in the current table in
a batch write operation.
|
TableWriteItems |
withItemsToPut(Item... itemsToPut)
Used to specify the items to be put in the current table in a batch write
operation.
|
TableWriteItems |
withPrimaryKeysToDelete(PrimaryKey... primaryKeysToDelete)
Used to specify multiple primary keys to be deleted from the current
table.
|
public TableWriteItems(String tableName)
public List<PrimaryKey> getPrimaryKeysToDelete()
public TableWriteItems withPrimaryKeysToDelete(PrimaryKey... primaryKeysToDelete)
public TableWriteItems withHashOnlyKeysToDelete(String hashKeyName, Object... hashKeyValues)
hashKeyName
- hash-only key namehashKeyValues
- a list of hash key valuespublic TableWriteItems withHashAndRangeKeysToDelete(String hashKeyName, String rangeKeyName, Object... alternatingHashAndRangeKeyValues)
hashKeyName
- hash key namerangeKeyName
- range key namealternatingHashAndRangeKeyValues
- a list of alternating hash key value and range key valuepublic TableWriteItems addPrimaryKeyToDelete(PrimaryKey primaryKey)
public TableWriteItems addHashOnlyPrimaryKeyToDelete(String hashKeyName, Object hashKeyValue)
hashKeyName
- name of the hash key attribute namehashKeyValue
- name of the hash key valuepublic TableWriteItems addHashOnlyPrimaryKeysToDelete(String hashKeyName, Object... hashKeyValues)
hashKeyName
- name of the hash key attribute namehashKeyValues
- multiple hash key valuespublic TableWriteItems addHashAndRangePrimaryKeysToDelete(String hashKeyName, String rangeKeyName, Object... alternatingHashRangeKeyValues)
hashKeyName
- name of the hash key attribute namerangeKeyName
- name of the range key attribute namealternatingHashRangeKeyValues
- used to specify multiple alternating hash key and range key
valuespublic TableWriteItems addHashAndRangePrimaryKeyToDelete(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
hashKeyName
- hash key attribute namehashKeyValue
- hash key valuerangeKeyName
- range key attribute namerangeKeyValue
- range key valuepublic TableWriteItems withItemsToPut(Item... itemsToPut)
public TableWriteItems withItemsToPut(Collection<Item> itemsToPut)
public Collection<Item> getItemsToPut()
public String getTableName()
public TableWriteItems addItemToPut(Item item)
Copyright © 2023. All rights reserved.