Class BatchWriteResult
java.lang.Object
dev.hogwai.dynamodb.simplified.result.BatchWriteResult
- All Implemented Interfaces:
Consumed
-
Constructor Summary
ConstructorsConstructorDescriptionBatchWriteResult(@NonNull Map<String, List<software.amazon.awssdk.services.dynamodb.model.WriteRequest>> unprocessedItems) Constructs a newBatchWriteResultwith no consumed capacity information.BatchWriteResult(@NonNull Map<String, List<software.amazon.awssdk.services.dynamodb.model.WriteRequest>> unprocessedItems, @Nullable software.amazon.awssdk.services.dynamodb.model.ConsumedCapacity consumedCapacity) Constructs a newBatchWriteResult. -
Method Summary
Modifier and TypeMethodDescription@Nullable software.amazon.awssdk.services.dynamodb.model.ConsumedCapacityReturns the consumed capacity, ornullif capacity was not requested or the operation does not support capacity tracking.booleanReturns whether any items were not processed.Returns the unprocessed items, keyed by table name.
-
Constructor Details
-
BatchWriteResult
-
BatchWriteResult
public BatchWriteResult(@NonNull Map<String, List<software.amazon.awssdk.services.dynamodb.model.WriteRequest>> unprocessedItems, @Nullable software.amazon.awssdk.services.dynamodb.model.ConsumedCapacity consumedCapacity) Constructs a newBatchWriteResult.- Parameters:
unprocessedItems- the items that were not processed, keyed by table nameconsumedCapacity- the consumed capacity, ornull
-
-
Method Details
-
consumedCapacity
public @Nullable software.amazon.awssdk.services.dynamodb.model.ConsumedCapacity consumedCapacity()Returns the consumed capacity, ornullif capacity was not requested or the operation does not support capacity tracking.- Specified by:
consumedCapacityin interfaceConsumed- Returns:
- consumed capacity, or
null
-
unprocessedItems
-
hasUnprocessed
public boolean hasUnprocessed()Returns whether any items were not processed.- Returns:
trueif there are unprocessed items,falseotherwise
-