Class VirtualDataWindowContext

java.lang.Object
com.espertech.esper.common.client.hook.vdw.VirtualDataWindowContext

public class VirtualDataWindowContext extends Object
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

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.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 context
    Returns 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 factory
    Returns 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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - factory
      agentInstanceViewFactoryContext - context
      eventBeanFactory - event bean factory
      outputStream - 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

      public EventType 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

      public Object[] getParameters()
      Returns the parameters passed; for example "create window ABC.my:vdw("10.0.0.1")" passes one paramater here.
      Returns:
      parameters
    • getEventFactory

      public EventBeanFactory getEventFactory()
      Returns the factory for creating instances of EventBean from rows.
      Returns:
      event bean factory
    • getOutputStream

      public VirtualDataWindowOutStream 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

      public String 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