class ScanPage extends Page<Item,ScanOutcome>
Modifier and Type | Field and Description |
---|---|
private AmazonDynamoDB |
client |
private int |
index |
private java.util.Map<java.lang.String,AttributeValue> |
lastEvaluatedKey |
private ScanRequest |
request |
private ScanSpec |
spec |
Constructor and Description |
---|
ScanPage(AmazonDynamoDB client,
ScanSpec spec,
ScanRequest request,
int index,
ScanOutcome 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,ScanOutcome> |
nextPage()
Retrieves the next page.
|
private int |
nextRequestLimit(int max) |
getLowLevelResult, iterator, size, toString
private final AmazonDynamoDB client
private final ScanSpec spec
private final ScanRequest request
private final int index
private final java.util.Map<java.lang.String,AttributeValue> lastEvaluatedKey
public ScanPage(AmazonDynamoDB client, ScanSpec spec, ScanRequest request, int index, ScanOutcome 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,ScanOutcome>
private int nextRequestLimit(int max)
public Page<Item,ScanOutcome> nextPage()
Page
nextPage
in class Page<Item,ScanOutcome>