Package io.siddhi.core.query
Class OnDemandQueryRuntime
- java.lang.Object
-
- io.siddhi.core.query.OnDemandQueryRuntime
-
- Direct Known Subclasses:
DeleteOnDemandQueryRuntime,FindOnDemandQueryRuntime,InsertOnDemandQueryRuntime,SelectOnDemandQueryRuntime,UpdateOnDemandQueryRuntime,UpdateOrInsertOnDemandQueryRuntime
public abstract class OnDemandQueryRuntime extends Object
On-Demand Query Runtime Interface
-
-
Constructor Summary
Constructors Constructor Description OnDemandQueryRuntime()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Event[]execute()This method initiates the execution of on-demand Query.io.siddhi.query.api.definition.Attribute[]getOnDemandQueryOutputAttributes()This method will return the output attributes name and its types.abstract io.siddhi.core.query.OnDemandQueryRuntime.TYPEgetType()This method will return the type of the on-demand Query runtime.abstract voidreset()This method is used to execute a on-demand Query when there is already on-demand Query runtime for that query.voidsetMetaStreamEvent(MetaStreamEvent metaStreamEvent)voidsetOutputAttributes(List<io.siddhi.query.api.definition.Attribute> outputAttributeList)This method sets the output attribute list of the given on-demand Query.voidsetSelector(QuerySelector selector)This method sets selector for the delete on-demand Query runtime.voidsetStateEventFactory(StateEventFactory stateEventFactory)This method sets a state event pool for on-demand Query runtime.
-
-
-
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)
-
-