Class VirtualDataWindowContext
java.lang.Object
com.espertech.esper.common.client.hook.vdw.VirtualDataWindowContext
Context for use with virtual data window factory
VirtualDataWindowFactory
provides
contextual information about the named window and the type of events held,
handle for posting insert and remove streams and factory for event bean instances.-
Constructor Summary
ConstructorDescriptionVirtualDataWindowContext
(VirtualDWViewFactory factory, AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext, EventBeanFactory eventBeanFactory, VirtualDataWindowOutStreamImpl outputStream) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the agent instance (context partition) context.Returns the agent instance contextReturns the factory for creating instances of EventBean from rows.Returns the event type of the events held in the virtual data window as per declaration of the named window.Returns the factoryReturns the name of the named window used in connection with the virtual data window.Returns a handle for use to send insert and remove stream data to consuming statements.Returns the expressions passed as parameters to the virtual data window.Object[]
Returns the parameters passed; for example "create window ABC.my:vdw("10.0.0.1")" passes one paramater here.Returns the statement context which holds statement information (name, expression, id) and statement-level services.
-
Constructor Details
-
VirtualDataWindowContext
public VirtualDataWindowContext(VirtualDWViewFactory factory, AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext, EventBeanFactory eventBeanFactory, VirtualDataWindowOutStreamImpl outputStream) Ctor.- Parameters:
factory
- factoryagentInstanceViewFactoryContext
- contexteventBeanFactory
- event bean factoryoutputStream
- output stream
-
-
Method Details
-
getStatementContext
Returns the statement context which holds statement information (name, expression, id) and statement-level services.- Returns:
- statement context
-
getEventType
Returns the event type of the events held in the virtual data window as per declaration of the named window.- Returns:
- event type
-
getParameters
Returns the parameters passed; for example "create window ABC.my:vdw("10.0.0.1")" passes one paramater here.- Returns:
- parameters
-
getEventFactory
Returns the factory for creating instances of EventBean from rows.- Returns:
- event bean factory
-
getOutputStream
Returns a handle for use to send insert and remove stream data to consuming statements.Typically use "context.getOutputStream().update(newData, oldData);" in the update method of the virtual data window.
- Returns:
- handle for posting insert and remove stream
-
getNamedWindowName
Returns the name of the named window used in connection with the virtual data window.- Returns:
- named window
-
getParameterExpressions
Returns the expressions passed as parameters to the virtual data window.- Returns:
- parameter expressions
-
getAgentInstanceContext
Returns the agent instance (context partition) context.- Returns:
- context
-
getFactory
Returns the factory- Returns:
- factory
-
getAgentInstanceViewFactoryContext
Returns the agent instance context- Returns:
- agent instance context
-