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 | Method and Description |
---|---|
static <T> Page<T> |
create(List<T> items)
Static constructor for this object that sets a null 'lastEvaluatedKey' which indicates this is the final page
of results.
|
static <T> Page<T> |
create(List<T> items,
Map<String,AttributeValue> lastEvaluatedKey)
Static constructor for this object.
|
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.
|
String |
toString() |
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.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()
Copyright © 2022. All rights reserved.