|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.named.NamedWindowProcessor
public class NamedWindowProcessor
An instance of this class is associated with a specific named window. The processor provides the views to create-window, on-delete statements and statements selecting from a named window.
Constructor Summary | |
---|---|
NamedWindowProcessor(NamedWindowService namedWindowService,
String windowName,
EventType eventType,
EPStatementHandle createWindowStmtHandle,
StatementResultService statementResultService)
Ctor. |
Method Summary | |
---|---|
NamedWindowConsumerView |
addConsumer(List<ExprNode> filterList,
EPStatementHandle statementHandle,
StatementStopService statementStopService)
Adds a consuming (selecting) statement to the named window. |
NamedWindowOnExprBaseView |
addOnExpr(OnTriggerDesc onTriggerDesc,
ExprNode joinExpr,
EventType filterEventType,
StatementStopService statementStopService,
InternalEventRouter internalEventRouter,
ResultSetProcessor resultSetProcessor,
EPStatementHandle statementHandle,
StatementResultService statementResultService)
Returns a new view for a new on-delete or on-select statement. |
void |
destroy()
Deletes a named window and removes any associated resources. |
EventType |
getNamedWindowType()
Returns the event type of the named window. |
NamedWindowRootView |
getRootView()
Returns the root view of the named window, hooked into the view chain before the named window's data window views, right after the filter stream that filters for insert-into events. |
NamedWindowTailView |
getTailView()
Returns the tail view of the named window, hooked into the view chain after the named window's data window views, as the last view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedWindowProcessor(NamedWindowService namedWindowService, String windowName, EventType eventType, EPStatementHandle createWindowStmtHandle, StatementResultService statementResultService)
namedWindowService
- service for dispatching resultswindowName
- the window nameeventType
- the type of event held by the named windowcreateWindowStmtHandle
- the statement handle of the statement that created the named windowstatementResultService
- for coordinating on whether insert and remove stream events should be postedMethod Detail |
---|
public NamedWindowTailView getTailView()
public NamedWindowRootView getRootView()
public NamedWindowOnExprBaseView addOnExpr(OnTriggerDesc onTriggerDesc, ExprNode joinExpr, EventType filterEventType, StatementStopService statementStopService, InternalEventRouter internalEventRouter, ResultSetProcessor resultSetProcessor, EPStatementHandle statementHandle, StatementResultService statementResultService)
onTriggerDesc
- descriptor describing the on-trigger specificationfilterEventType
- event type to trigger onstatementStopService
- to indicate a on-delete was stoppedinternalEventRouter
- for insert-into handlingresultSetProcessor
- for select-clause processingstatementHandle
- is the handle to the statement, used for routing/insert-intojoinExpr
- is the join expression or null if there is nonestatementResultService
- for coordinating on whether insert and remove stream events should be posted
public EventType getNamedWindowType()
public NamedWindowConsumerView addConsumer(List<ExprNode> filterList, EPStatementHandle statementHandle, StatementStopService statementStopService)
statementHandle
- is the statement's handle for lockingstatementStopService
- for indicating the consuming statement is stopped or destroyedfilterList
- is a list of filter expressions
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 |