- java.lang.Object
-
- org.datanucleus.store.query.inmemory.JavaQueryInMemoryEvaluator
-
- org.datanucleus.store.query.inmemory.JDOQLInMemoryEvaluator
-
public class JDOQLInMemoryEvaluator extends JavaQueryInMemoryEvaluator
Class to evaluate a JDOQL query in whole or part.
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.query.inmemory.JavaQueryInMemoryEvaluator
candidateAlias, candidates, clr, compilation, evaluator, language, parameterValues, query, RESULTS_SET, state
-
-
Constructor Summary
Constructors Constructor Description JDOQLInMemoryEvaluator(Query query, Collection candidates, QueryCompilation compilation, Map parameterValues, ClassLoaderResolver clr)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CollectionevaluateSubquery(Query query, QueryCompilation compilation, Collection candidates, Object outerCandidate)Method to evaluate a subquery of the query being evaluated.Collectionexecute(boolean applyFilter, boolean applyOrdering, boolean applyResult, boolean applyResultClass, boolean applyRange)Method to perform the evaluation, applying the query restrictions that are required.
-
-
-
Constructor Detail
-
JDOQLInMemoryEvaluator
public JDOQLInMemoryEvaluator(Query query, Collection candidates, QueryCompilation compilation, Map parameterValues, ClassLoaderResolver clr)
Constructor.- Parameters:
query- The underlying JDOQL querycandidates- List of objects as input to the evaluation processcompilation- Query compilationparameterValues- Input parameter values keyed by the param nameclr- ClassLoader resolver
-
-
Method Detail
-
evaluateSubquery
protected Collection evaluateSubquery(Query query, QueryCompilation compilation, Collection candidates, Object outerCandidate)
Method to evaluate a subquery of the query being evaluated.- Specified by:
evaluateSubqueryin classJavaQueryInMemoryEvaluator- Parameters:
query- The subquerycompilation- The subquery compilationcandidates- The candidates for the subqueryouterCandidate- Current candidate in the outer query (for use when linking back)- Returns:
- The result
-
execute
public Collection execute(boolean applyFilter, boolean applyOrdering, boolean applyResult, boolean applyResultClass, boolean applyRange)
Description copied from class:JavaQueryInMemoryEvaluatorMethod to perform the evaluation, applying the query restrictions that are required.- Overrides:
executein classJavaQueryInMemoryEvaluator- Parameters:
applyFilter- Whether to apply any filter constraints on the resultsapplyOrdering- Whether to apply any order constraints on the resultsapplyResult- Whether to apply any result/grouping/having on the resultsapplyResultClass- Whether to apply any resultClass constraint on the resultsapplyRange- Whether to apply any range constraint on the results- Returns:
- The results after evaluation.
-
-