|
||||||||||
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.NamedWindowTailViewInstance
public class NamedWindowTailViewInstance
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 |
---|
EMPTY_VIEW_ARRAY, parent |
Constructor Summary | |
---|---|
NamedWindowTailViewInstance(NamedWindowRootViewInstance rootViewInstance,
NamedWindowTailView tailView,
AgentInstanceContext agentInstanceContext)
|
Method Summary | |
---|---|
NamedWindowConsumerView |
addConsumer(NamedWindowConsumerDesc consumerDesc,
boolean isSubselect)
Adds a consuming (selecting) statement to the named window. |
void |
destroy()
Destroy the view. |
AgentInstanceContext |
getAgentInstanceContext()
|
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
long |
getNumberOfEvents()
Returns the number of events held. |
NamedWindowTailView |
getTailView()
|
java.util.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. |
java.util.Collection<EventBean> |
snapshot(FilterSpecCompiled filter,
java.lang.annotation.Annotation[] annotations)
Returns a snapshot of window contents, thread-safely |
EventBean[] |
snapshotDelete(FilterSpecCompiled filter,
ExprNode filterExpr,
java.lang.annotation.Annotation[] annotations)
|
java.util.Collection<EventBean> |
snapshotNoLock(FilterSpecCompiled filter,
java.lang.annotation.Annotation[] annotations)
|
java.util.Collection<EventBean> |
snapshotNoLockWithFilter(FilterSpecCompiled filter,
java.lang.annotation.Annotation[] annotations,
ExprNode filterExpr,
ExprEvaluatorContext exprEvaluatorContext)
|
EventBean[] |
snapshotUpdate(FilterSpecCompiled filter,
ExprNode optionalWhereClause,
EventBeanUpdateHelper updateHelper,
java.lang.annotation.Annotation[] annotations)
|
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, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, 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 NamedWindowTailViewInstance(NamedWindowRootViewInstance rootViewInstance, NamedWindowTailView tailView, AgentInstanceContext agentInstanceContext)
Method Detail |
---|
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(NamedWindowConsumerDesc consumerDesc, boolean isSubselect)
public void removeConsumer(NamedWindowConsumerView namedWindowConsumerView)
namedWindowConsumerView
- is the consumer representative viewpublic EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public java.util.Iterator<EventBean> iterator()
EventCollection
iterator
in interface EventCollection
iterator
in interface java.lang.Iterable<EventBean>
public java.util.Collection<EventBean> snapshot(FilterSpecCompiled filter, java.lang.annotation.Annotation[] annotations)
filter
- filters if any
public EventBean[] snapshotUpdate(FilterSpecCompiled filter, ExprNode optionalWhereClause, EventBeanUpdateHelper updateHelper, java.lang.annotation.Annotation[] annotations)
public EventBean[] snapshotDelete(FilterSpecCompiled filter, ExprNode filterExpr, java.lang.annotation.Annotation[] annotations)
public java.util.Collection<EventBean> snapshotNoLock(FilterSpecCompiled filter, java.lang.annotation.Annotation[] annotations)
public java.util.Collection<EventBean> snapshotNoLockWithFilter(FilterSpecCompiled filter, java.lang.annotation.Annotation[] annotations, ExprNode filterExpr, ExprEvaluatorContext exprEvaluatorContext)
public AgentInstanceContext getAgentInstanceContext()
public void destroy()
public long getNumberOfEvents()
public NamedWindowTailView getTailView()
|
© 2006-2015 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 |