Class BatchWriteResult
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.BatchWriteResult
Defines the result of the batchWriteItem() operation, such as
DynamoDbEnhancedClient.batchWriteItem(BatchWriteItemEnhancedRequest)
. The result describes any unprocessed items
after the operation completes.
- Use the
unprocessedPutItemsForTable(MappedTableResource)
method once for each table present in the request to get any unprocessed items from a put action on that table. - Use the
unprocessedDeleteItemsForTable(MappedTableResource)
method once for each table present in the request to get any unprocessed items from a delete action on that table.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder that is used to create a result with the desired parameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchWriteResult.Builder
builder()
Creates a newly initialized builder for a request object.unprocessedDeleteItemsForTable
(MappedTableResource<?> mappedTable) Retrieve any unprocessed delete action keys belonging to the supplied table from the result.<T> List
<T> unprocessedPutItemsForTable
(MappedTableResource<T> mappedTable) Retrieve any unprocessed put action items belonging to the supplied table from the result .
-
Method Details
-
builder
Creates a newly initialized builder for a request object. -
unprocessedPutItemsForTable
Retrieve any unprocessed put action items belonging to the supplied table from the result . Call this method once for each table present in the batch request.- Type Parameters:
T
- the type of the table items- Parameters:
mappedTable
- the table to retrieve unprocessed items for- Returns:
- a list of items
-
unprocessedDeleteItemsForTable
Retrieve any unprocessed delete action keys belonging to the supplied table from the result. Call this method once for each table present in the batch request.- Parameters:
mappedTable
- the table to retrieve unprocessed items for.- Returns:
- a list of keys that were not processed as part of the batch request.
-