Class SizeOfSetFunctionExecutor

    • Constructor Detail

      • SizeOfSetFunctionExecutor

        public SizeOfSetFunctionExecutor()
    • 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)
        return maximum of arbitrary long set of Double values
        Specified by:
        execute in class FunctionExecutor
        Parameters:
        data - array of Double values
        state -
        Returns:
        max
      • 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
      • getReturnType

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