Class CrossTableBatchGetResult
java.lang.Object
dev.hogwai.dynamodb.simplified.result.CrossTableBatchGetResult
- All Implemented Interfaces:
Consumed
Holds the result of a cross-table batch get operation.
Items are accessible per-table via getItems(Table).
Unprocessed keys (if any) are available via getUnprocessedKeys().
Consumed capacity is available if requested via consumedCapacity().
-
Constructor Summary
ConstructorsConstructorDescriptionCrossTableBatchGetResult(@NonNull Map<String, List<Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue>>> responses, @NonNull Map<String, software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes> unprocessedKeys, @NonNull Map<String, software.amazon.awssdk.enhanced.dynamodb.TableSchema<?>> tableSchemas) Constructs a newCrossTableBatchGetResultwith no consumed capacity information.CrossTableBatchGetResult(@NonNull Map<String, List<Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue>>> responses, @NonNull Map<String, software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes> unprocessedKeys, @NonNull Map<String, software.amazon.awssdk.enhanced.dynamodb.TableSchema<?>> tableSchemas, @Nullable software.amazon.awssdk.services.dynamodb.model.ConsumedCapacity consumedCapacity) Constructs a newCrossTableBatchGetResult. -
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.<T> @NonNull List<T> Returns items for the given table, deserialized from the raw response.Returns the unprocessed keys, keyed by table name.booleanReturns whether any keys were not processed.
-
Constructor Details
-
CrossTableBatchGetResult
public CrossTableBatchGetResult(@NonNull Map<String, List<Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue>>> responses, @NonNull Map<String, software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes> unprocessedKeys, @NonNull Map<String, software.amazon.awssdk.enhanced.dynamodb.TableSchema<?>> tableSchemas) Constructs a newCrossTableBatchGetResultwith no consumed capacity information.- Parameters:
responses- the raw response items per table nameunprocessedKeys- the unprocessed keys per table nametableSchemas- the table schemas per table name, for deserialization
-
CrossTableBatchGetResult
public CrossTableBatchGetResult(@NonNull Map<String, List<Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue>>> responses, @NonNull Map<String, software.amazon.awssdk.services.dynamodb.model.KeysAndAttributes> unprocessedKeys, @NonNull Map<String, software.amazon.awssdk.enhanced.dynamodb.TableSchema<?>> tableSchemas, @Nullable software.amazon.awssdk.services.dynamodb.model.ConsumedCapacity consumedCapacity) Constructs a newCrossTableBatchGetResult.- Parameters:
responses- the raw response items per table nameunprocessedKeys- the unprocessed keys per table nametableSchemas- the table schemas per table name, for deserializationconsumedCapacity- 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
-
getItems
-
getUnprocessedKeys
-
hasUnprocessed
public boolean hasUnprocessed()Returns whether any keys were not processed.- Returns:
trueif there are unprocessed keys,falseotherwise
-