Class OnDemandQueryRuntime

    • Constructor Detail

      • OnDemandQueryRuntime

        public OnDemandQueryRuntime()
    • Method Detail

      • execute

        public Event[] execute()
        This method initiates the execution of on-demand Query.
        Returns:
        an array of Events.
      • setStateEventFactory

        public void setStateEventFactory​(StateEventFactory stateEventFactory)
        This method sets a state event pool for on-demand Query runtime.
        Parameters:
        stateEventFactory - stateEventFactory for the on-demand Query runtime
      • setOutputAttributes

        public void setOutputAttributes​(List<io.siddhi.query.api.definition.Attribute> outputAttributeList)
        This method sets the output attribute list of the given on-demand Query.
        Parameters:
        outputAttributeList - of the on-demand Query
      • getOnDemandQueryOutputAttributes

        public io.siddhi.query.api.definition.Attribute[] getOnDemandQueryOutputAttributes()
        This method will return the output attributes name and its types.
        Returns:
        List of output attributes
      • setSelector

        public void setSelector​(QuerySelector selector)
        This method sets selector for the delete on-demand Query runtime.
        Parameters:
        selector - for the on-demand Query
      • reset

        public abstract void reset()
        This method is used to execute a on-demand Query when there is already on-demand Query runtime for that query.
      • getType

        public abstract io.siddhi.core.query.OnDemandQueryRuntime.TYPE getType()
        This method will return the type of the on-demand Query runtime.
        Returns:
        type of on-demand Query runtime. (one of the types DELETE, INSERT, SELECT, UPDATE, FIND or UPDATE OR INSERT)
      • setMetaStreamEvent

        public void setMetaStreamEvent​(MetaStreamEvent metaStreamEvent)