public interface QueryResult<T> extends Iterable<QueryResultSet.Row<T>>
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.| Modifier and Type | Method and Description |
|---|---|
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. |
forEach, iterator, spliteratorint 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()
QueryRepositoryQueryRepositoryString getRepositoryAlias()
QueryPlan getPlan()
void close()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.