T
- The type of objects held in this list.public class PaginatedParallelScanList<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 ParallelScanTask |
parallelScanTask
The current parallel scan task which contains all the information about the scan request
|
allResults, allResultsLoaded, clazz, dynamo, mapper, nextResults
Constructor and Description |
---|
PaginatedParallelScanList(DynamoDBMapper mapper,
java.lang.Class<T> clazz,
AmazonDynamoDB dynamo,
ParallelScanTask parallelScanTask,
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.
|
private java.util.List<T> |
marshalParallelScanResultsIntoObjects(java.util.List<ScanResult> scanResults) |
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 ParallelScanTask parallelScanTask
private final DynamoDBMapperConfig config
public PaginatedParallelScanList(DynamoDBMapper mapper, java.lang.Class<T> clazz, AmazonDynamoDB dynamo, ParallelScanTask parallelScanTask, 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>
private java.util.List<T> marshalParallelScanResultsIntoObjects(java.util.List<ScanResult> scanResults)