public interface Query
ResultHandle
, Execution
).Modifier and Type | Method and Description |
---|---|
int |
getLimit()
Gets the query limit of this query.
|
String |
getResultName()
Gets the name of the underlying ResultHandle.
|
String |
getResultSelector()
Gets the selector of the underlying ResultHandle.
|
boolean |
hasNext()
Checks if there are results that have not yet been retrieved.
|
List<Result> |
nextResultBlock()
Incrementally retrieves the next chunk of results.
|
List<Result> |
nextResults()
This is a convenience method that repeatedly invokes
nextResultBlock() as long as hasNext() returns true. |
void |
reset()
Resets the query such that the internal result pointer offset is set to
0.
|
void |
setLimit(int limit)
Sets a limit for the maximum number of result instances that are
retrieved per invocation of
nextResults() with this query. |
void reset()
hasNext()
and nextResults()
will return results starting from the very first one, not the next result
since the last use of the Query. The limit
and
queryString
are not affected by the reset.void setLimit(int limit)
nextResults()
with this query.limit
- the query limitint getLimit()
boolean hasNext() throws at.srfg.miner.exception.MinerException
at.srfg.miner.exception.MinerException
List<Result> nextResultBlock() throws at.srfg.miner.exception.MinerException
setLimit(int)
) is smaller than the number of results that became
available since the last invocation of nextResultBlock()
.limit
. If there aren't any, an empty
list is returned (but never null).at.srfg.miner.exception.MinerException
List<Result> nextResults() throws at.srfg.miner.exception.MinerException
nextResultBlock()
as long as hasNext()
returns true. It
thus retrieves all results that became available since the last result
query, even if the number is higher than a local or server imposed
limit
.
WARNING: if there are many new results at the server, this call may lead to a heap space problem!
at.srfg.miner.exception.MinerException
String getResultName()
String getResultSelector()
Copyright (c) Salzburg Research Forschungsgesellschaft mbH. All rights reserved.