public abstract class AbstractQueryResult<T> extends AbstractList<T> implements QueryResult<T>, Serializable
| Modifier and Type | Method and Description |
|---|---|
T |
get(int index) |
long |
getSize() |
SubsetPolicy |
getSubsetPolicy()
Retrieves the subset policy this result set is based on.
|
long |
getTotalCount()
Gets the optionally evaluated count of all items satisfying the query this result is
based on.
|
long |
getTotalCountThreshold()
This returns the configured threshold up to which total count is counted exactly.
|
boolean |
hasMore()
Indicates if there are more items available for this result set than allowed by its
SubsetPolicy. |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subListpublic T get(int index)
public int size()
size in interface Collection<T>size in interface List<T>size in class AbstractCollection<T>public long getSize()
public long getTotalCount()
throws UnsupportedOperationException
QueryResultSubsetPolicy.
If no subset policy is used, the total count of items is equal the size of the query
result.getTotalCount in interface QueryResult<T>UnsupportedOperationException - if the evaluation of the total count was not
requestedSubsetPolicy.isEvaluatingTotalCount()public SubsetPolicy getSubsetPolicy()
QueryResultgetSubsetPolicy in interface QueryResult<T>SubsetPolicy the result set is based on.public boolean hasMore()
QueryResultSubsetPolicy.hasMore in interface QueryResult<T>true if there are more items available, false if
not.QueryResult.getSubsetPolicy()public long getTotalCountThreshold()
QueryResultgetTotalCountThreshold in interface QueryResult<T>Copyright © 2016 Eclipse Stardust. All Rights Reserved.