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 Details

  • Method Details

    • getStatementContext

      public 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 ExprEvaluator[] getParameterExpressions()
      Returns the expressions passed as parameters to the virtual data window.
      Returns:
      parameter expressions
    • getAgentInstanceContext

      public AgentInstanceContext getAgentInstanceContext()
      Returns the agent instance (context partition) context.
      Returns:
      context
    • getFactory

      public VirtualDWViewFactory getFactory()
      Returns the factory
      Returns:
      factory
    • getAgentInstanceViewFactoryContext

      public AgentInstanceViewFactoryChainContext getAgentInstanceViewFactoryContext()
      Returns the agent instance context
      Returns:
      agent instance context