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
(com.espertech.esper.common.internal.epl.virtualdw.VirtualDWViewFactory factory, com.espertech.esper.common.internal.view.core.AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext, EventBeanFactory eventBeanFactory, com.espertech.esper.common.internal.epl.virtualdw.VirtualDataWindowOutStreamImpl outputStream) Ctor. -
Method Summary
Modifier and TypeMethodDescriptioncom.espertech.esper.common.internal.context.util.AgentInstanceContext
Returns the agent instance (context partition) context.com.espertech.esper.common.internal.view.core.AgentInstanceViewFactoryChainContext
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.com.espertech.esper.common.internal.epl.virtualdw.VirtualDWViewFactory
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.com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator[]
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.com.espertech.esper.common.internal.context.util.StatementContext
Returns the statement context which holds statement information (name, expression, id) and statement-level services.
-
Constructor Details
-
VirtualDataWindowContext
public VirtualDataWindowContext(com.espertech.esper.common.internal.epl.virtualdw.VirtualDWViewFactory factory, com.espertech.esper.common.internal.view.core.AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext, EventBeanFactory eventBeanFactory, com.espertech.esper.common.internal.epl.virtualdw.VirtualDataWindowOutStreamImpl outputStream) Ctor.- Parameters:
factory
- factoryagentInstanceViewFactoryContext
- contexteventBeanFactory
- event bean factoryoutputStream
- output stream
-
-
Method Details
-
getStatementContext
public com.espertech.esper.common.internal.context.util.StatementContext 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
public com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator[] getParameterExpressions()Returns the expressions passed as parameters to the virtual data window.- Returns:
- parameter expressions
-
getAgentInstanceContext
public com.espertech.esper.common.internal.context.util.AgentInstanceContext getAgentInstanceContext()Returns the agent instance (context partition) context.- Returns:
- context
-
getFactory
public com.espertech.esper.common.internal.epl.virtualdw.VirtualDWViewFactory getFactory()Returns the factory- Returns:
- factory
-
getAgentInstanceViewFactoryContext
public com.espertech.esper.common.internal.view.core.AgentInstanceViewFactoryChainContext getAgentInstanceViewFactoryContext()Returns the agent instance context- Returns:
- agent instance context
-