Class ScanResultPage<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe capacity units consumed by an operation.getCount()
The number of items in the response.Returns the last evaluated key, which can be used as the exclusiveStartKey to fetch the next page of results.Returns all matching items for this page of scan results, which may be empty.The number of items evaluated, before any ScanFilter is applied.void
setConsumedCapacity
(ConsumedCapacity consumedCapacity) void
void
setLastEvaluatedKey
(Map<String, AttributeValue> lastEvaluatedKey) void
setResults
(List<T> results) void
setScannedCount
(Integer scannedCount)
-
Constructor Details
-
ScanResultPage
public ScanResultPage()
-
-
Method Details
-
getResults
Returns all matching items for this page of scan results, which may be empty. -
setResults
-
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.
-
setLastEvaluatedKey
-
getCount
The number of items in the response.If you set ScanFilter 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 is the same as ScannedCount.
- Returns:
- The number of items in the response.
If you set ScanFilter 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 is the same as ScannedCount.
-
setCount
-
getScannedCount
The number of items evaluated, before any ScanFilter is applied. A high ScannedCount value with few, or no, Count results indicates an inefficient Scan 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 ScanFilter is
applied. A high ScannedCount value with few, or no,
Count results indicates an inefficient Scan 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
-
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
-