Class EventVariableFunctionExecutor

    • Constructor Detail

      • EventVariableFunctionExecutor

        public EventVariableFunctionExecutor​(int streamEventChainIndex,
                                             int streamEventIndexInChain)
    • Method Detail

      • init

        protected StateFactory init​(ExpressionExecutor[] attributeExpressionExecutors,
                                    ConfigReader configReader,
                                    SiddhiQueryContext siddhiQueryContext)
        Description copied from class: FunctionExecutor
        The initialization method for FunctionExecutor, this method will be called before the other methods
        Specified by:
        init in class FunctionExecutor
        Parameters:
        attributeExpressionExecutors - are the executors of each function parameters
        configReader - This hold the FunctionExecutor extensions configuration reader.
        siddhiQueryContext - the context of the siddhi query
      • getReturnType

        public io.siddhi.query.api.definition.Attribute.Type getReturnType()
      • execute

        protected Object execute​(Object[] data,
                                 State state)
        Description copied from class: FunctionExecutor
        The main execution method which will be called upon event arrival when there are more then one function parameter
        Specified by:
        execute in class FunctionExecutor
        Parameters:
        data - the runtime values of function parameters
        state - current query state
        Returns:
        the function result
      • execute

        protected Object execute​(Object data,
                                 State state)
        Description copied from class: FunctionExecutor
        The main execution method which will be called upon event arrival when there are zero or one function parameter
        Specified by:
        execute in class FunctionExecutor
        Parameters:
        data - null if the function parameter count is zero or runtime data value of the function parameter
        state - current query state
        Returns:
        the function result