|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodb.datamodeling.PaginatedList<T>
T
- The domain object type stored in this list.public abstract class PaginatedList<T>
Unmodifiable list supporting paginated result sets from Amazon DynamoDB.
Pages of results are fetched lazily from DynamoDB as they are needed. Some
methods, such as size()
and
toArray()
, require fetching the entire result set
eagerly. See the javadoc of individual methods for details on which are lazy.
Constructor Summary | |
---|---|
PaginatedList(DynamoDBMapper mapper,
Class<T> clazz,
AmazonDynamoDB dynamo)
|
Method Summary | ||
---|---|---|
void |
add(int arg0,
T arg1)
|
|
boolean |
add(T arg0)
|
|
boolean |
addAll(Collection<? extends T> arg0)
|
|
boolean |
addAll(int arg0,
Collection<? extends T> arg1)
|
|
void |
clear()
|
|
boolean |
contains(Object arg0)
Returns whether the collection contains the given element. |
|
boolean |
containsAll(Collection<?> arg0)
|
|
T |
get(int n)
Returns the Nth element of the list. |
|
int |
indexOf(Object arg0)
Returns the first index of the object given in the list. |
|
boolean |
isEmpty()
Returns whether the collection is empty. |
|
Iterator<T> |
iterator()
Returns an iterator over this list that lazily initializes results as necessary. |
|
int |
lastIndexOf(Object arg0)
|
|
ListIterator<T> |
listIterator()
|
|
ListIterator<T> |
listIterator(int arg0)
|
|
void |
loadAllResults()
Eagerly loads all results for this list. |
|
T |
remove(int arg0)
|
|
boolean |
remove(Object arg0)
|
|
boolean |
removeAll(Collection<?> arg0)
|
|
boolean |
retainAll(Collection<?> arg0)
|
|
T |
set(int arg0,
T arg1)
|
|
int |
size()
|
|
List<T> |
subList(int arg0,
int arg1)
Returns a sub-list in the range specified, loading more results as necessary. |
|
Object[] |
toArray()
|
|
|
toArray(X[] a)
|
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 |
---|
public PaginatedList(DynamoDBMapper mapper, Class<T> clazz, AmazonDynamoDB dynamo)
Method Detail |
---|
public void loadAllResults()
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in interface List<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
isEmpty
in interface List<T>
public T get(int n)
get
in interface List<T>
public boolean contains(Object arg0)
contains
in interface Collection<T>
contains
in interface List<T>
public List<T> subList(int arg0, int arg1)
subList
in interface List<T>
public int indexOf(Object arg0)
indexOf
in interface List<T>
public int size()
size
in interface Collection<T>
size
in interface List<T>
public boolean containsAll(Collection<?> arg0)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
public int lastIndexOf(Object arg0)
lastIndexOf
in interface List<T>
public Object[] toArray()
toArray
in interface Collection<T>
toArray
in interface List<T>
public <X> X[] toArray(X[] a)
toArray
in interface Collection<T>
toArray
in interface List<T>
public ListIterator<T> listIterator()
listIterator
in interface List<T>
public ListIterator<T> listIterator(int arg0)
listIterator
in interface List<T>
public boolean remove(Object arg0)
remove
in interface Collection<T>
remove
in interface List<T>
public T remove(int arg0)
remove
in interface List<T>
public boolean removeAll(Collection<?> arg0)
removeAll
in interface Collection<T>
removeAll
in interface List<T>
public boolean retainAll(Collection<?> arg0)
retainAll
in interface Collection<T>
retainAll
in interface List<T>
public T set(int arg0, T arg1)
set
in interface List<T>
public boolean add(T arg0)
add
in interface Collection<T>
add
in interface List<T>
public void add(int arg0, T arg1)
add
in interface List<T>
public boolean addAll(Collection<? extends T> arg0)
addAll
in interface Collection<T>
addAll
in interface List<T>
public boolean addAll(int arg0, Collection<? extends T> arg1)
addAll
in interface List<T>
public void clear()
clear
in interface Collection<T>
clear
in interface List<T>
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |