|
||||||||||
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
public class OutputProcessView
A view that prepares output events, batching incoming events and invoking the result set processor as necessary.
Nested Class Summary | |
---|---|
static class |
OutputProcessView.OutputProcessTransform
Method to transform an event based on the select expression. |
Field Summary |
---|
Fields inherited from class net.esper.view.ViewSupport |
---|
parent |
Constructor Summary | |
---|---|
OutputProcessView(ResultSetProcessor resultSetProcessor,
int streamCount,
OutputLimitSpec outputLimitSpec,
ViewServiceContext viewContext)
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. |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
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.view.ViewSupport |
---|
addView, dumpChildViews, dumpUpdateParams, findDescendent, getParent, getViews, hasViews, removeView, setParent, shallowCopyView, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputProcessView(ResultSetProcessor resultSetProcessor, int streamCount, OutputLimitSpec outputLimitSpec, ViewServiceContext viewContext)
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)viewContext
- is the services the output condition may depend onMethod Detail |
---|
public void update(EventBean[] newData, EventBean[] oldData)
update
in interface View
newData
- - new eventsoldData
- - old eventspublic void process(Set<MultiKey<EventBean>> newEvents, Set<MultiKey<EventBean>> oldEvents)
process
in interface JoinSetProcessor
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 arrivedpublic EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public Iterator<EventBean> iterator()
EventCollection
iterator
in interface Iterable<EventBean>
iterator
in interface EventCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |