T
- The type of objects held in this list.public class PaginatedScanList<T> extends PaginatedList<T>
This is an unmodifiable list, so callers should not invoke any operations that modify this list, otherwise they will throw an UnsupportedOperationException.
PaginatedList
Modifier and Type | Field and Description |
---|---|
private DynamoDBMapperConfig |
config |
private ScanRequest |
scanRequest
The current scan request
|
private ScanResult |
scanResult
The current results for the last executed scan operation
|
allResults, allResultsLoaded, clazz, dynamo, mapper, nextResults
Constructor and Description |
---|
PaginatedScanList(DynamoDBMapper mapper,
java.lang.Class<T> clazz,
AmazonDynamoDB dynamo,
ScanRequest scanRequest,
ScanResult scanResult,
DynamoDBMapperConfig.PaginationLoadingStrategy paginationLoadingStrategy,
DynamoDBMapperConfig config) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
atEndOfResults()
Returns whether we have reached the end of the result set.
|
protected java.util.List<T> |
fetchNextPage()
Fetches the next page of results (which may be empty) and returns any
items found.
|
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, loadAllResults, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
private final ScanRequest scanRequest
private final DynamoDBMapperConfig config
private ScanResult scanResult
public PaginatedScanList(DynamoDBMapper mapper, java.lang.Class<T> clazz, AmazonDynamoDB dynamo, ScanRequest scanRequest, ScanResult scanResult, DynamoDBMapperConfig.PaginationLoadingStrategy paginationLoadingStrategy, DynamoDBMapperConfig config)
protected boolean atEndOfResults()
PaginatedList
atEndOfResults
in class PaginatedList<T>
protected java.util.List<T> fetchNextPage()
PaginatedList
fetchNextPage
in class PaginatedList<T>