Class IncrementalStartTimeEndTimeFunctionExecutor

  • All Implemented Interfaces:
    ExpressionExecutor, Serializable

    public class IncrementalStartTimeEndTimeFunctionExecutor
    extends FunctionExecutor
    Executor class for finding the start time and end time of the within clause in incremental processing. This is important when retrieving incremental aggregate values by specifying a time range with 'within' clause.
    See Also:
    Serialized Form
    • Constructor Detail

      • IncrementalStartTimeEndTimeFunctionExecutor

        public IncrementalStartTimeEndTimeFunctionExecutor()
    • 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)
        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()