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 cachedWGAPIException
public WGCachedResultSet(java.util.List<WGContentKey> keys)
public int results()
WGResultSetCore
results
in interface WGResultSetCore
public java.util.List<? extends java.lang.Object> getContentList(int start, int length) throws WGAPIException
WGResultSetCore
getContentList
in interface WGResultSetCore
start
- Starting index of contents to be retrieved. First index is 1.length
- Number of contents to be retrievedWGAPIException
public java.util.List<? extends java.lang.Object> getContentList() throws WGAPIException
WGResultSetCore
getContentList
in interface WGResultSetCore
WGAPIException
public java.util.List<? extends java.lang.Object> getColumnNames()
WGResultSetCore
getColumnNames
in interface WGResultSetCore
public boolean isReturnsKeys()
WGResultSetCore
isReturnsKeys
in interface WGResultSetCore
public java.util.Iterator<WGContentQueryResult> getResultIterator()
WGIteratingResultSetCore
getResultIterator
in interface WGIteratingResultSetCore
public boolean isLimitingResults()
WGResultSetCore
WGDatabase.QUERYOPTION_MAXRESULTS
. False means that the result set does not limit itself, and the limit must be enforced by WGA.isLimitingResults
in interface WGResultSetCore