|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExprEvaluatorTypableReturn
Interface for evaluators that select possible multi-valued results in a single select column, such as subqueries and "new" and case+new combined.
When returning non-null results from {#getRowProperties},
the ExprEvaluator.evaluate(com.espertech.esper.client.EventBean[], boolean, ExprEvaluatorContext)
must return an instance of Map
When returning non-null results, the the evaluator must also return either Object[] results or Object[][], each object-array following the same exact order as provided by the map, matching the multi-row flag.
Method Summary | |
---|---|
java.lang.Object[][] |
evaluateTypableMulti(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
|
java.lang.Object[] |
evaluateTypableSingle(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context)
|
java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getRowProperties()
Return null to indicate no row-type result available, or a map of property names and types to indicate a row-type result is available. |
java.lang.Boolean |
isMultirow()
Return true for multi-row return, return false for return of single row only |
Methods inherited from interface com.espertech.esper.epl.expression.ExprEvaluator |
---|
evaluate, getType |
Method Detail |
---|
java.util.LinkedHashMap<java.lang.String,java.lang.Object> getRowProperties() throws ExprValidationException
ExprValidationException
- if the expression is invalidjava.lang.Boolean isMultirow()
java.lang.Object[] evaluateTypableSingle(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
java.lang.Object[][] evaluateTypableMulti(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
|
© 2006-2014 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |