|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryResult<T>
A QueryResult
is the raw output of a Query
on a QueryEngine
. It
provides an Iterable
of repository values matching a given query.
This interface can be extended to provide more sophisticated views into the underlying
QueryRepository
.
Method Summary | |
---|---|
void |
close()
Close the query result and any associated resources. |
int |
estimatedSize()
Returns the estimated number of results represented in this QueryResult . |
QueryPlan |
getPlan()
Retrieve the QueryPlan that encapsulates the execution strategy for the Query that yielded this QueryResult. |
QueryRepository<?,T> |
getRepository()
Obtain the underlying QueryRepository |
String |
getRepositoryAlias()
Gets the repository alias used to fetch the results. |
boolean |
isFullScan()
Indicates whether the query must perform a full scan of the repository. |
void |
setPrefetchCount(int prefetchCount)
Provides a hint as to the number of results that should be prefetched when iterating through the results. |
int |
size()
Returns the total number of results represented in this QueryResult . |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
int size()
QueryResult
.
It is not guaranteed that all queries will be able to satify this request without
addtional scanning of the underlying QueryEngine
.
QueryResult
.int estimatedSize()
QueryResult
.
This is the best estimate of the size that does not require reading the
underlying QueryEngine
.
QueryResult
.boolean isFullScan()
void setPrefetchCount(int prefetchCount)
QueryRepository<?,T> getRepository()
QueryRepository
QueryRepository
String getRepositoryAlias()
QueryPlan getPlan()
void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |