Class BatchGetResult<T>
java.lang.Object
dev.hogwai.dynamodb.simplified.result.BatchGetResult<T>
- Type Parameters:
T- the item type
- All Implemented Interfaces:
Consumed
-
Constructor Summary
ConstructorsConstructorDescriptionBatchGetResult(@NonNull List<T> items, @NonNull Map<String, software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes> unprocessedKeys) Constructs a newBatchGetResultwith no consumed capacity information.BatchGetResult(@NonNull List<T> items, @NonNull Map<String, software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes> unprocessedKeys, @Nullable software.amazon.awssdk.services.dynamodb.model.ConsumedCapacity consumedCapacity) Constructs a newBatchGetResult. -
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 keys were not processed.items()Returns the successfully retrieved items.Returns the unprocessed keys, keyed by table name.
-
Constructor Details
-
BatchGetResult
public BatchGetResult(@NonNull List<T> items, @NonNull Map<String, software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes> unprocessedKeys) Constructs a newBatchGetResultwith no consumed capacity information.- Parameters:
items- the successfully retrieved itemsunprocessedKeys- the keys that were not processed, keyed by table name
-
BatchGetResult
public BatchGetResult(@NonNull List<T> items, @NonNull Map<String, software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes> unprocessedKeys, @Nullable software.amazon.awssdk.services.dynamodb.model.ConsumedCapacity consumedCapacity) Constructs a newBatchGetResult.- Parameters:
items- the successfully retrieved itemsunprocessedKeys- the keys 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
-
items
-
unprocessedKeys
-
hasUnprocessed
public boolean hasUnprocessed()Returns whether any keys were not processed.- Returns:
trueif there are unprocessed keys,falseotherwise
-