class QueryPage extends Page<Item,QueryOutcome>
Modifier and Type | Field and Description |
---|---|
private AmazonDynamoDB |
client |
private int |
index |
private java.util.Map<java.lang.String,AttributeValue> |
lastEvaluatedKey |
private QueryRequest |
request |
private QuerySpec |
spec |
Constructor and Description |
---|
QueryPage(AmazonDynamoDB client,
QuerySpec spec,
QueryRequest request,
int index,
QueryOutcome outcome) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNextPage()
Checks whether this page has a "next page." If this method returns
true, the next page can be retrieved by calling
next . |
Page<Item,QueryOutcome> |
nextPage()
Retrieves the next page.
|
private int |
nextRequestLimit(int max) |
getLowLevelResult, iterator, size, toString
private final AmazonDynamoDB client
private final QuerySpec spec
private final QueryRequest request
private final int index
private final java.util.Map<java.lang.String,AttributeValue> lastEvaluatedKey
public QueryPage(AmazonDynamoDB client, QuerySpec spec, QueryRequest request, int index, QueryOutcome outcome)
public boolean hasNextPage()
Page
next
. If it
returns false, any call to next
will be guaranteed to throw an
IllegalStateException
.hasNextPage
in class Page<Item,QueryOutcome>
private int nextRequestLimit(int max)
public Page<Item,QueryOutcome> nextPage()
Page
nextPage
in class Page<Item,QueryOutcome>