BatchGetItemApi, BatchWriteItemApi, ListTablesApi@ThreadSafe public class DynamoDb extends Object implements ListTablesApi, BatchGetItemApi, BatchWriteItemApi
| Constructor | Description |
|---|---|
DynamoDb(Region regionEnum) |
Create a DynamoDB object that talks to the specified AWS region.
|
DynamoDb(DynamoDBClient client) |
| Modifier and Type | Method | Description |
|---|---|---|
BatchGetItemOutcome |
batchGetItem(BatchGetItemSpec spec) |
Used to perform a batch get-item operation from DynamoDB with full
parameter specification.
|
BatchGetItemOutcome |
batchGetItem(TableKeysAndAttributes... tableKeysAndAttributes) |
Used to perform a batch get-item operation from DynamoDB.
|
BatchGetItemOutcome |
batchGetItem(ReturnConsumedCapacity returnConsumedCapacity,
TableKeysAndAttributes... tableKeysAndAttributes) |
Used to perform a batch get-item operation from DynamoDB.
|
BatchGetItemOutcome |
batchGetItemUnprocessed(Map<String,KeysAndAttributes> unprocessedKeys) |
Used to perform a batch get-item for the unprocessed keys returned from a
previous batch get-item operation.
|
BatchGetItemOutcome |
batchGetItemUnprocessed(ReturnConsumedCapacity returnConsumedCapacity,
Map<String,KeysAndAttributes> unprocessedKeys) |
Used to perform a batch get-item for the unprocessed keys returned from a
previous batch get-item operation.
|
BatchWriteItemOutcome |
batchWriteItem(BatchWriteItemSpec spec) |
Used to perform a batch write operation to DynamoDB with full parameter
specification.
|
BatchWriteItemOutcome |
batchWriteItem(TableWriteItems... tableWriteItems) |
Used to perform a batch write operation to DynamoDB.
|
BatchWriteItemOutcome |
batchWriteItemUnprocessed(Map<String,List<WriteRequest>> unprocessedItems) |
Used to perform a batch write operation for the unprocessed items
returned from a previous batch write operation.
|
Table |
createTable(String tableName,
List<KeySchemaElement> keySchema,
List<AttributeDefinition> attributeDefinitions,
ProvisionedThroughput provisionedThroughput) |
Creates the specified table in DynamoDB.
|
Table |
createTable(CreateTableRequest req) |
Creates the specified table in DynamoDB.
|
Table |
getTable(String tableName) |
Returns the specified DynamoDB table.
|
TableCollection<ListTablesResponse> |
listTables() |
Returns a collection of all the tables (initialized with the respective
table names) associated with the current account and endpoint.
|
TableCollection<ListTablesResponse> |
listTables(int maxResultSize) |
Returns a collection of tables (initialized with the respective table
names) up to the specified
maxResultSize associated with
the current account and endpoint. |
TableCollection<ListTablesResponse> |
listTables(String exclusiveStartTableName) |
Returns a collection of tables (initialized with the respective table
names) associated with the current account and endpoint, starting with a
name after the specified
exclusiveStartTableName . |
TableCollection<ListTablesResponse> |
listTables(String exclusiveStartTableName,
int maxResultSize) |
Returns a collection of tables (initialized with the respective table
names) up to the specified
maxResultSize associated with
the current account and endpoint, starting with a name after the
specified exclusiveStartTableName. |
TableCollection<ListTablesResponse> |
listTables(ListTablesSpec spec) |
List tables by specifying all the details.
|
void |
shutdown() |
Shuts down and release all resources.
|
public DynamoDb(DynamoDBClient client)
public DynamoDb(Region regionEnum)
DynamoDBClient#DynamoDBClient() for more information.
BatchWriteRetryStrategyTest
If you need more control over the client configuration, use
DynamoDb(DynamoDBClient) instead.
regionEnum - the AWS region enumDynamoDBClient#DynamoDBClient()public Table getTable(String tableName)
public Table createTable(CreateTableRequest req)
public Table createTable(String tableName, List<KeySchemaElement> keySchema, List<AttributeDefinition> attributeDefinitions, ProvisionedThroughput provisionedThroughput)
public TableCollection<ListTablesResponse> listTables()
ListTablesApilistTables in interface ListTablesApipublic TableCollection<ListTablesResponse> listTables(String exclusiveStartTableName)
ListTablesApiexclusiveStartTableName . The
underlying collection is paginated with a page size of 100. A network
call is made whenever the collection is iterated across a page boundary.listTables in interface ListTablesApiexclusiveStartTableName - The first table name that this operation will evaluate,
exclusive of the specified
exclusiveStartTableName. Use the value that was
returned for LastEvaluatedTableName in a previous
operation, so that you can obtain the next page of results.public TableCollection<ListTablesResponse> listTables(String exclusiveStartTableName, int maxResultSize)
ListTablesApimaxResultSize associated with
the current account and endpoint, starting with a name after the
specified exclusiveStartTableName. The underlying collection
is paginated with a page size of 100. A network call is made whenever the
collection is iterated across a page boundary.listTables in interface ListTablesApiexclusiveStartTableName - The first table name that this operation will evaluate
exclusive of the specified
exclusiveStartTableName. Use the value that was
returned for LastEvaluatedTableName in a previous
operation, so that you can obtain the next page of results.maxResultSize - A maximum number of table names to return.public TableCollection<ListTablesResponse> listTables(int maxResultSize)
ListTablesApimaxResultSize associated with
the current account and endpoint. The underlying collection
is paginated with a page size of 100. A network call is made whenever the
collection is iterated across a page boundary.listTables in interface ListTablesApimaxResultSize - A maximum number of table names to return.public TableCollection<ListTablesResponse> listTables(ListTablesSpec spec)
ListTablesApilistTables in interface ListTablesApispec - can be used to specify all the detailed parameters of listing
tables.public BatchGetItemOutcome batchGetItem(ReturnConsumedCapacity returnConsumedCapacity, TableKeysAndAttributes... tableKeysAndAttributes)
BatchGetItemApibatchGetItem in interface BatchGetItemApireturnConsumedCapacity - returned capacity to be returnedtableKeysAndAttributes - the tables, keys, and attributes specification to be used to
retrieve the items.public BatchGetItemOutcome batchGetItem(TableKeysAndAttributes... tableKeysAndAttributes)
BatchGetItemApibatchGetItem in interface BatchGetItemApitableKeysAndAttributes - the tables, keys, and attributes specification to be used to
retrieve the items.public BatchGetItemOutcome batchGetItem(BatchGetItemSpec spec)
BatchGetItemApibatchGetItem in interface BatchGetItemApipublic BatchGetItemOutcome batchGetItemUnprocessed(ReturnConsumedCapacity returnConsumedCapacity, Map<String,KeysAndAttributes> unprocessedKeys)
BatchGetItemApibatchGetItemUnprocessed in interface BatchGetItemApireturnConsumedCapacity - returned capacity to be returnedunprocessedKeys - the unprocessed keys returned from the result of a previous
batch-get-item operation.BatchGetItemOutcome.getUnprocessedKeys()public BatchGetItemOutcome batchGetItemUnprocessed(Map<String,KeysAndAttributes> unprocessedKeys)
BatchGetItemApibatchGetItemUnprocessed in interface BatchGetItemApiunprocessedKeys - the unprocessed keys returned from the result of a previous
batch-get-item operation.BatchGetItemOutcome.getUnprocessedKeys()public BatchWriteItemOutcome batchWriteItem(TableWriteItems... tableWriteItems)
BatchWriteItemApibatchWriteItem in interface BatchWriteItemApitableWriteItems - the tables and the respective keys to delete from and/or the
respective items to be put.public BatchWriteItemOutcome batchWriteItem(BatchWriteItemSpec spec)
BatchWriteItemApibatchWriteItem in interface BatchWriteItemApipublic BatchWriteItemOutcome batchWriteItemUnprocessed(Map<String,List<WriteRequest>> unprocessedItems)
BatchWriteItemApibatchWriteItemUnprocessed in interface BatchWriteItemApiunprocessedItems - the unprocessed items returned from the result of a previous
batch write operationBatchWriteItemOutcome.getUnprocessedItems()Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.