|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.ViewSupport
net.esper.eql.view.OutputProcessView
net.esper.eql.view.OutputProcessViewPolicy
public class OutputProcessViewPolicy
A view that prepares output events, batching incoming events and invoking the result set processor as necessary.
Handles output rate limiting or stabilizing.
Field Summary |
---|
Fields inherited from class net.esper.eql.view.OutputProcessView |
---|
resultSetProcessor |
Fields inherited from class net.esper.view.ViewSupport |
---|
parent |
Constructor Summary | |
---|---|
OutputProcessViewPolicy(ResultSetProcessor resultSetProcessor,
int streamCount,
OutputLimitSpec outputLimitSpec,
StatementContext statementContext)
Ctor. |
Method Summary | |
---|---|
protected void |
continueOutputProcessingJoin(boolean doOutput,
boolean forceUpdate)
Called once the output condition has been met. |
protected void |
continueOutputProcessingView(boolean doOutput,
boolean forceUpdate)
Called once the output condition has been met. |
void |
process(Set<MultiKey<EventBean>> newEvents,
Set<MultiKey<EventBean>> oldEvents)
This process (update) method is for participation in a join. |
void |
update(EventBean[] newData,
EventBean[] oldData)
The update method is called if the view does not participate in a join. |
Methods inherited from class net.esper.eql.view.OutputProcessView |
---|
getEventType, iterator |
Methods inherited from class net.esper.view.ViewSupport |
---|
addView, dumpChildViews, dumpUpdateParams, findDescendent, getParent, getViews, hasViews, removeView, setParent, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputProcessViewPolicy(ResultSetProcessor resultSetProcessor, int streamCount, OutputLimitSpec outputLimitSpec, StatementContext statementContext)
resultSetProcessor
- is processing the result set for publishing it outstreamCount
- is the number of streams, indicates whether or not this view participates in a joinoutputLimitSpec
- is the specification for limiting output (the output condition and the result set processor)statementContext
- is the services the output condition may depend onMethod Detail |
---|
public void update(EventBean[] newData, EventBean[] oldData)
newData
- - new eventsoldData
- - old eventspublic void process(Set<MultiKey<EventBean>> newEvents, Set<MultiKey<EventBean>> oldEvents)
newEvents
- - new eventsoldEvents
- - old eventsprotected void continueOutputProcessingView(boolean doOutput, boolean forceUpdate)
doOutput
- - true if the batched events should actually be output as well as processed, false if they should just be processedforceUpdate
- - true if output should be made even when no updating events have arrivedprotected void continueOutputProcessingJoin(boolean doOutput, boolean forceUpdate)
doOutput
- - true if the batched events should actually be output as well as processed, false if they should just be processedforceUpdate
- - true if output should be made even when no updating events have arrived
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |