public class WGCachedResultSet extends java.lang.Object implements WGIteratingResultSetCore
| Constructor and Description |
|---|
WGCachedResultSet(java.util.List<WGContentKey> keys) |
WGCachedResultSet(WGResultSetCore resultSetCore)
Creates a cached result set that will cache the contents that is given as result set core
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends java.lang.Object> |
getColumnNames()
Returns the name of result row columns, if this query serves multi column results
Result set cores not supporting this type of results should return null here
|
java.util.List<? extends java.lang.Object> |
getContentList()
Called to retrieve a list of all content in this result set.
|
java.util.List<? extends java.lang.Object> |
getContentList(int start,
int length)
Called to retrieve a subset of content of this result set.
|
java.util.Iterator<WGContentQueryResult> |
getResultIterator()
Returns an iterator iterating over the result documents of the set
|
boolean |
isLimitingResults()
Indicates if the query type does honor result size limits, give via
WGDatabase.QUERYOPTION_MAXRESULTS. |
boolean |
isReturnsKeys()
Determines, if this result set core only returns WGContentKey-Objects, to allow the WGAPI
to rely on cached document objects.
|
int |
results()
Returns the number of contents in this result set.
|
public WGCachedResultSet(WGResultSetCore resultSetCore) throws WGAPIException
resultSetCore - The result set core, whose content result is cachedWGAPIExceptionpublic WGCachedResultSet(java.util.List<WGContentKey> keys)
public int results()
WGResultSetCoreresults in interface WGResultSetCorepublic java.util.List<? extends java.lang.Object> getContentList(int start,
int length)
throws WGAPIException
WGResultSetCoregetContentList in interface WGResultSetCorestart - Starting index of contents to be retrieved. First index is 1.length - Number of contents to be retrievedWGAPIExceptionpublic java.util.List<? extends java.lang.Object> getContentList()
throws WGAPIException
WGResultSetCoregetContentList in interface WGResultSetCoreWGAPIExceptionpublic java.util.List<? extends java.lang.Object> getColumnNames()
WGResultSetCoregetColumnNames in interface WGResultSetCorepublic boolean isReturnsKeys()
WGResultSetCoreisReturnsKeys in interface WGResultSetCorepublic java.util.Iterator<WGContentQueryResult> getResultIterator()
WGIteratingResultSetCoregetResultIterator in interface WGIteratingResultSetCorepublic boolean isLimitingResults()
WGResultSetCoreWGDatabase.QUERYOPTION_MAXRESULTS. False means that the result set does not limit itself, and the limit must be enforced by WGA.isLimitingResults in interface WGResultSetCore