S - source typeT - target typepublic class JoinedQueryExecutor<S extends Storable,T extends Storable> extends AbstractQueryExecutor<T>
| Modifier and Type | Method and Description |
|---|---|
static <T extends Storable> |
build(RepositoryAccess repoAccess,
ChainedProperty<T> targetToSourceProperty,
Filter<T> targetFilter,
OrderingList<T> targetOrdering,
QueryHints hints)
Builds and returns a complex joined excutor against a chained property,
supporting multi-way joins.
|
Cursor<T> |
fetch(FilterValues<T> values)
Returns a new cursor using the given filter values.
|
Cursor<T> |
fetch(FilterValues<T> values,
Query.Controller controller)
Returns a new cursor using the given filter values.
|
Filter<T> |
getFilter()
Returns the filter used by this QueryExecutor.
|
OrderingList<T> |
getOrdering()
Returns the result ordering of this QueryExecutor.
|
boolean |
printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<T> values)
Prints the query plan to any appendable, if applicable.
|
count, count, fetchSlice, fetchSlice, getStorableType, increaseIndent, indent, newline, printNativepublic static <T extends Storable> QueryExecutor<T> build(RepositoryAccess repoAccess, ChainedProperty<T> targetToSourceProperty, Filter<T> targetFilter, OrderingList<T> targetOrdering, QueryHints hints) throws RepositoryException
repoAccess - used to create query executors for outer and inner loopstargetToSourceProperty - join property of target type which maps
to instances of source typetargetFilter - optional filter for fetching target instancestargetOrdering - optional ordering to apply to target executor
& @param hints optional hintsjava.lang.IllegalArgumentException - if any parameter is null or if join
property is not a Storable typeRepositoryException - from RepositoryAccesspublic Cursor<T> fetch(FilterValues<T> values) throws FetchException
QueryExecutorFetchExceptionpublic Cursor<T> fetch(FilterValues<T> values, Query.Controller controller) throws FetchException
QueryExecutorcontroller - optional controller which can abort query operationFetchExceptionpublic Filter<T> getFilter()
QueryExecutorpublic OrderingList<T> getOrdering()
QueryExecutorpublic boolean printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<T> values)
throws java.io.IOException
QueryExecutorvalues - optionaljava.io.IOExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.