|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QueryResult<T>
Result of a Query execution. Holds retrieved items, any applying
SubsetPolicy and a flag if more items would be available beyond that subset.
Query,
SubsetPolicy| Method Summary | |
|---|---|
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. |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Method Detail |
|---|
long getTotalCount()
throws UnsupportedOperationException
SubsetPolicy.
If no subset policy is used, the total count of items is equal the size of the query
result.
UnsupportedOperationException - if the evaluation of the total count was not
requestedSubsetPolicy.isEvaluatingTotalCount()SubsetPolicy getSubsetPolicy()
SubsetPolicy the result set is based on.boolean hasMore()
SubsetPolicy.
true if there are more items available, false if
not.getSubsetPolicy()long getTotalCountThreshold()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||