public interface ExprEvaluatorTypableReturn extends ExprEvaluator
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.
Modifier and Type | Method and Description |
---|---|
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
|
evaluate, getType
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)