Package org.hcjf.layers.query
Class BaseEvaluator.QueryValue
- java.lang.Object
-
- org.hcjf.layers.query.BaseEvaluator.QueryValue
-
- All Implemented Interfaces:
BaseEvaluator.UnprocessedValue
- Enclosing class:
- BaseEvaluator
public static class BaseEvaluator.QueryValue extends java.lang.Object implements BaseEvaluator.UnprocessedValue
This kind of query value represents a sub-query.
-
-
Constructor Summary
Constructors Constructor Description QueryValue(Query query)
-
Method Summary
Modifier and Type Method Description QuerygetQuery()Return the sub-query instance.java.lang.Objectprocess(Queryable.DataSource dataSource, Queryable.Consumer consumer)Evaluate the sub-query a return the collection result set as value.
-
-
-
Constructor Detail
-
QueryValue
public QueryValue(Query query)
-
-
Method Detail
-
getQuery
public Query getQuery()
Return the sub-query instance.- Returns:
- Sub-query instance.
-
process
public java.lang.Object process(Queryable.DataSource dataSource, Queryable.Consumer consumer)
Evaluate the sub-query a return the collection result set as value. The first value of the parameters array (parameters[0]) is the instance of data source to evaluate the sub-query. The second value of the parameters array (parameters[1]) is the instance of the consumer to evaluate the sub-query. The rest of the parameters are the parameter to evaluate the sub-query..- Specified by:
processin interfaceBaseEvaluator.UnprocessedValue- Parameters:
dataSource- Data source of the in-evaluation object.consumer- Consumer for the object.- Returns:
- If the return fields size is one then the result will be a a list of values, else if the return fields size is greater than one then the result will be a collection with object instance.
-
-