public class QueryResultPage<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ConsumedCapacity |
consumedCapacity |
private java.lang.Integer |
count |
private java.util.Map<java.lang.String,AttributeValue> |
lastEvaluatedKey |
private java.util.List<T> |
results |
private java.lang.Integer |
scannedCount |
Constructor and Description |
---|
QueryResultPage() |
Modifier and Type | Method and Description |
---|---|
ConsumedCapacity |
getConsumedCapacity()
The capacity units consumed by an operation.
|
java.lang.Integer |
getCount()
The number of items in the response.
|
java.util.Map<java.lang.String,AttributeValue> |
getLastEvaluatedKey()
Returns the last evaluated key, which can be used as the
exclusiveStartKey to fetch the next page of results.
|
java.util.List<T> |
getResults()
Returns all matching items for this page of query results.
|
java.lang.Integer |
getScannedCount()
The number of items evaluated, before any QueryFilter is
applied.
|
void |
setConsumedCapacity(ConsumedCapacity consumedCapacity) |
void |
setCount(java.lang.Integer count) |
void |
setLastEvaluatedKey(java.util.Map<java.lang.String,AttributeValue> lastEvaluatedKey) |
void |
setResults(java.util.List<T> results) |
void |
setScannedCount(java.lang.Integer scannedCount) |
private java.util.List<T> results
private java.util.Map<java.lang.String,AttributeValue> lastEvaluatedKey
private java.lang.Integer count
private java.lang.Integer scannedCount
private ConsumedCapacity consumedCapacity
public java.util.List<T> getResults()
public void setResults(java.util.List<T> results)
public java.util.Map<java.lang.String,AttributeValue> getLastEvaluatedKey()
public void setLastEvaluatedKey(java.util.Map<java.lang.String,AttributeValue> lastEvaluatedKey)
public java.lang.Integer getCount()
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.
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.
public void setCount(java.lang.Integer count)
public java.lang.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(java.lang.Integer scannedCount)
public ConsumedCapacity getConsumedCapacity()
public void setConsumedCapacity(ConsumedCapacity consumedCapacity)