Class BatchGetResultPage

java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.BatchGetResultPage

@ThreadSafe public final class BatchGetResultPage extends Object
Defines one result page with retrieved items in the result of a batchGetItem() operation, such as DynamoDbEnhancedClient.batchGetItem(BatchGetItemEnhancedRequest).

Use the resultsForTable(MappedTableResource) method once for each table present in the request to retrieve items from that table in the page.

  • Method Details

    • builder

      public static BatchGetResultPage.Builder builder()
      Creates a newly initialized builder for a result object.
    • resultsForTable

      public <T> List<T> resultsForTable(MappedTableResource<T> mappedTable)
      Retrieve all items on this result page belonging to the supplied table. 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 items for
      Returns:
      a list of items
    • unprocessedKeysForTable

      public List<Key> unprocessedKeysForTable(MappedTableResource<?> mappedTable)
      Returns a list of keys associated with a given table that were not processed during the operation, typically because the total size of the request is too large or exceeds the provisioned throughput of the table. If an item was attempted to be retrieved but not found in the table, it will not appear in this list or the results list.
      Parameters:
      mappedTable - the table to retrieve the unprocessed keys for
      Returns:
      a list of unprocessed keys
    • consumedCapacity

      public List<ConsumedCapacity> consumedCapacity()