Class QueryResultPage<T>


  • public class QueryResultPage<T>
    extends Object
    Container for a page of query results
    • Constructor Detail

      • QueryResultPage

        public QueryResultPage()
    • Method Detail

      • getResults

        public List<T> getResults()
        Returns all matching items for this page of query results.
      • setResults

        public void setResults​(List<T> results)
      • getLastEvaluatedKey

        public Map<String,​AttributeValue> getLastEvaluatedKey()
        Returns the last evaluated key, which can be used as the exclusiveStartKey to fetch the next page of results. Returns null if this is the last page of results.
        Returns:
        The key-value pairs which map from the attribute name of each component of the primary key to its value.
      • getCount

        public Integer getCount()
        The number of items in the response.

        If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before> the filter was applied.

        If you did not use a filter in the request, then Count and ScannedCount are the same.

        Returns:
        The number of items in the response.

        If you used a QueryFilter in the request, then Count is the number of items returned after the filter was applied, and ScannedCount is the number of matching items before> the filter was applied.

        If you did not use a filter in the request, then Count and ScannedCount are the same.

      • setCount

        public void setCount​(Integer count)
      • getScannedCount

        public Integer getScannedCount()
        The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

        If you did not use a filter in the request, then ScannedCount is the same as Count.

        Returns:
        The number of items evaluated, before any QueryFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Query operation. For more information, see Count and ScannedCount in the Amazon DynamoDB Developer Guide.

        If you did not use a filter in the request, then ScannedCount is the same as Count.

      • setScannedCount

        public void setScannedCount​(Integer scannedCount)
      • getConsumedCapacity

        public ConsumedCapacity getConsumedCapacity()
        The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the request asked for it. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
        Returns:
        The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the request asked for it. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.
      • setConsumedCapacity

        public void setConsumedCapacity​(ConsumedCapacity consumedCapacity)