T
- The modelled type of the object that has been read.@ThreadSafe public final class Page<T> extends Object
Contains a reference to the last evaluated key for the current page; see lastEvaluatedKey()
for more information.
Modifier and Type | Class and Description |
---|---|
static class |
Page.Builder<T> |
Modifier and Type | Method and Description |
---|---|
static <T> Page.Builder<T> |
builder(Class<T> itemClass) |
ConsumedCapacity |
consumedCapacity()
Returns the capacity units consumed by the last page query or scan.
|
Integer |
count()
The count of the returned items from the last page query or scan, after any filters were applied.
|
static <T> Page<T> |
create(List<T> items)
Deprecated.
|
static <T> Page<T> |
create(List<T> items,
Map<String,AttributeValue> lastEvaluatedKey)
Deprecated.
|
boolean |
equals(Object o) |
int |
hashCode() |
List<T> |
items()
Returns a page of mapped objects that represent records from a database query or scan.
|
Map<String,AttributeValue> |
lastEvaluatedKey()
Returns the 'lastEvaluatedKey' that DynamoDb returned from the last page query or scan.
|
Integer |
scannedCount()
The scanned count of the returned items from the last page query or scan, before any filters were applied.
|
String |
toString() |
@Deprecated public static <T> Page<T> create(List<T> items, Map<String,AttributeValue> lastEvaluatedKey)
T
- The modelled type of the object that has been read.items
- A list of items to store for the page.lastEvaluatedKey
- A 'lastEvaluatedKey' to store for the page.Page
object.@Deprecated public static <T> Page<T> create(List<T> items)
T
- The modelled type of the object that has been read.items
- A list of items to store for the page.Page
object.public List<T> items()
public Map<String,AttributeValue> lastEvaluatedKey()
public Integer count()
public Integer scannedCount()
public ConsumedCapacity consumedCapacity()
public static <T> Page.Builder<T> builder(Class<T> itemClass)
Copyright © 2023. All rights reserved.