|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.ViewSupport
com.espertech.esper.epl.named.NamedWindowTailView
public class NamedWindowTailView
This view is hooked into a named window's view chain as the last view and handles dispatching of named window
insert and remove stream results via NamedWindowService
to consuming statements.
Field Summary |
---|
Fields inherited from class com.espertech.esper.view.ViewSupport |
---|
parent |
Constructor Summary | |
---|---|
NamedWindowTailView(EventType eventType,
NamedWindowService namedWindowService,
NamedWindowRootView namedWindowRootView,
EPStatementHandle createWindowStmtHandle,
StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor)
Ctor. |
Method Summary | |
---|---|
NamedWindowConsumerView |
addConsumer(List<ExprNode> filterList,
EPStatementHandle statementHandle,
StatementStopService statementStopService)
Adds a consumer view keeping the consuming statement's handle and lock to coordinate dispatches. |
void |
destroy()
Destroy the view. |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
boolean |
isParentBatchWindow()
Returns true to indicate that the data window view is a batch view. |
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
void |
removeConsumer(NamedWindowConsumerView namedWindowConsumerView)
Called by the consumer view to indicate it was stopped or destroyed, such that the consumer can be deregistered and further dispatches disregard this consumer. |
Collection<EventBean> |
snapshot()
Returns a snapshot of window contents, thread-safely |
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent. |
Methods inherited from class com.espertech.esper.view.ViewSupport |
---|
addView, dumpChildViews, dumpUpdateParams, 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 NamedWindowTailView(EventType eventType, NamedWindowService namedWindowService, NamedWindowRootView namedWindowRootView, EPStatementHandle createWindowStmtHandle, StatementResultService statementResultService, ValueAddEventProcessor revisionProcessor)
eventType
- the event type of the named windownamedWindowService
- the service for dispatches to consumers for hooking into the dispatch loopnamedWindowRootView
- the root data window view for indicating remove stream events to be removed from possible on-delete indexescreateWindowStmtHandle
- statement handle for the statement that created the named window, for safe iterationstatementResultService
- for coordinating on whether insert and remove stream events should be postedrevisionProcessor
- handles update eventsMethod Detail |
---|
public boolean isParentBatchWindow()
public void update(EventBean[] newData, EventBean[] oldData)
View
update
in interface View
newData
- is the new data that has been added to the parent viewoldData
- is the old data that has been removed from the parent viewpublic NamedWindowConsumerView addConsumer(List<ExprNode> filterList, EPStatementHandle statementHandle, StatementStopService statementStopService)
statementHandle
- the statement handlestatementStopService
- for when the consumer stops, to unregister the consumerfilterList
- is a list of filter expressions
public void removeConsumer(NamedWindowConsumerView namedWindowConsumerView)
namedWindowConsumerView
- is the consumer representative viewpublic EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public Iterator<EventBean> iterator()
EventCollection
iterator
in interface EventCollection
iterator
in interface Iterable<EventBean>
public Collection<EventBean> snapshot()
public void destroy()
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |