Class BatchWriteResult
- java.lang.Object
- 
- software.amazon.awssdk.enhanced.dynamodb.model.BatchWriteResult
 
- 
 @ThreadSafe public final class BatchWriteResult extends Object Defines the result of the batchWriteItem() operation, such asDynamoDbEnhancedClient.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.
 
- Use the 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBatchWriteResult.BuilderA builder that is used to create a result with the desired parameters.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchWriteResult.Builderbuilder()Creates a newly initialized builder for a request object.List<ConsumedCapacity>consumedCapacity()Returns capacity units consumed by theBatchWriteoperation.booleanequals(Object o)inthashCode()Map<String,List<ItemCollectionMetrics>>itemCollectionMetrics()Returns ItemCollectionMetrics by theBatchWriteoperation.List<Key>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 Detail- 
consumedCapacitypublic List<ConsumedCapacity> consumedCapacity() Returns capacity units consumed by theBatchWriteoperation.- See Also:
- for more information.
 
 - 
itemCollectionMetricspublic Map<String,List<ItemCollectionMetrics>> itemCollectionMetrics() Returns ItemCollectionMetrics by theBatchWriteoperation.- See Also:
- for more information.
 
 - 
builderpublic static BatchWriteResult.Builder builder() Creates a newly initialized builder for a request object.
 - 
unprocessedPutItemsForTablepublic <T> List<T> unprocessedPutItemsForTable(MappedTableResource<T> mappedTable) 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
 
 - 
unprocessedDeleteItemsForTablepublic List<Key> unprocessedDeleteItemsForTable(MappedTableResource<?> mappedTable) 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.
 
 
- 
 
-