public class ScanResultPage<T> extends Object
Constructor and Description |
---|
ScanResultPage() |
Modifier and Type | Method and Description |
---|---|
ConsumedCapacity |
getConsumedCapacity()
The capacity units consumed by an operation.
|
Integer |
getCount()
The number of items in the response.
|
Map<String,AttributeValue> |
getLastEvaluatedKey()
Returns the last evaluated key, which can be used as the
exclusiveStartKey to fetch the next page of results.
|
List<T> |
getResults()
Returns all matching items for this page of scan results, which may be
empty.
|
Integer |
getScannedCount()
The number of items evaluated, before any ScanFilter is
applied.
|
void |
setConsumedCapacity(ConsumedCapacity consumedCapacity) |
void |
setCount(Integer count) |
void |
setLastEvaluatedKey(Map<String,AttributeValue> lastEvaluatedKey) |
void |
setResults(List<T> results) |
void |
setScannedCount(Integer scannedCount) |
public List<T> getResults()
public Map<String,AttributeValue> getLastEvaluatedKey()
public void setLastEvaluatedKey(Map<String,AttributeValue> lastEvaluatedKey)
public Integer getCount()
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.
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.
public void setCount(Integer count)
public Integer getScannedCount()
If you did not use a filter in the request, then ScannedCount is the same as Count.
If you did not use a filter in the request, then ScannedCount is the same as Count.
public void setScannedCount(Integer scannedCount)
public ConsumedCapacity getConsumedCapacity()
public void setConsumedCapacity(ConsumedCapacity consumedCapacity)
Copyright © 2024. All rights reserved.