public interface QueryResult<T> extends List<T>, Serializable
Query execution. Holds retrieved items, any applying
SubsetPolicy and a flag if more items would be available beyond that subset.Query,
SubsetPolicy| Modifier and Type | Method and Description |
|---|---|
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. |
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()
Copyright © 2016 Eclipse Stardust. All Rights Reserved.