com.amazonaws.services.dynamodb.datamodeling
Class PaginatedScanList<T>

java.lang.Object
  extended by com.amazonaws.services.dynamodb.datamodeling.PaginatedList<T>
      extended by com.amazonaws.services.dynamodb.datamodeling.PaginatedScanList<T>
Type Parameters:
T - The type of objects held in this list.
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>

public class PaginatedScanList<T>
extends PaginatedList<T>

Implementation of the List interface that represents the results from a scan in AWS DynamoDB. Paginated results are loaded on demand when the user executes an operation that requires them. Some operations, such as size(), must fetch the entire list, but results are lazily fetched page by page when possible.

This is an unmodifiable list, so callers should not invoke any operations that modify this list, otherwise they will throw an UnsupportedOperationException.

See Also:
PaginatedList

Constructor Summary
PaginatedScanList(DynamoDBMapper mapper, Class<T> clazz, AmazonDynamoDB dynamo, ScanRequest scanRequest, ScanResult scanResult)
           
 
Method Summary
 
Methods inherited from class com.amazonaws.services.dynamodb.datamodeling.PaginatedList
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, loadAllResults, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

PaginatedScanList

public PaginatedScanList(DynamoDBMapper mapper,
                         Class<T> clazz,
                         AmazonDynamoDB dynamo,
                         ScanRequest scanRequest,
                         ScanResult scanResult)


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.