Class Page<T,R>
java.lang.Object
com.amazonaws.services.dynamodbv2.document.Page<T,R>
- Type Parameters:
T- item typeR- low level result type
- All Implemented Interfaces:
Iterable<T>
A page contains a list of items; accessing methods on the list are
guaranteed to be purely in-memory operations that will not block or throw
exceptions because of transient network issues. A page also knows whether it
has a "next page", and if so knows how to retrieve it (which
will almost certainly involve a remote network call that may block or
fail).
-
Constructor Details
-
Page
-
-
Method Details
-
hasNextPage
public abstract boolean hasNextPage()Checks whether this page has a "next page." If this method returns true, the next page can be retrieved by callingnext. If it returns false, any call tonextwill be guaranteed to throw anIllegalStateException.- Returns:
- true if there is next page; false otherwise
-
nextPage
Retrieves the next page.- Returns:
- the next page
- Throws:
NoSuchElementException- if there is no next pageAmazonServiceException- on error making the remote call
-
size
public final int size() -
iterator
-
toString
-
getLowLevelResult
-