Class CreateSetFunctionExecutor

    • Constructor Detail

      • CreateSetFunctionExecutor

        public CreateSetFunctionExecutor()
    • 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
      • 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)
        return set object, containing only one element: data.
        Specified by:
        execute in class FunctionExecutor
        Parameters:
        data - array of Double values
        state -
        Returns:
        the set object
      • getReturnType

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