Class OutputProcessViewBaseWAfter

java.lang.Object
com.espertech.esper.common.internal.epl.output.core.OutputProcessView
com.espertech.esper.common.internal.epl.output.view.OutputProcessViewBaseWAfter
All Implemented Interfaces:
AgentInstanceMgmtCallback, JoinSetIndicator, JoinSetProcessor, OutputProcessViewTerminable, OutputProcessViewWithAfter, View, Viewable, Iterable<EventBean>
Direct Known Subclasses:
OutputProcessViewConditionDefault, OutputProcessViewConditionFirst, OutputProcessViewConditionLastAllUnord, OutputProcessViewConditionSnapshot, OutputProcessViewDirectDistinctOrAfter

public abstract class OutputProcessViewBaseWAfter extends OutputProcessView implements OutputProcessViewWithAfter
  • Field Details

  • Constructor Details

    • OutputProcessViewBaseWAfter

      protected OutputProcessViewBaseWAfter(AgentInstanceContext agentInstanceContext, ResultSetProcessor resultSetProcessor, Long afterConditionTime, Integer afterConditionNumberOfEvents, boolean afterConditionSatisfied)
  • Method Details

    • getOptionalAfterConditionState

      public OutputProcessViewAfterState getOptionalAfterConditionState()
      Specified by:
      getOptionalAfterConditionState in interface OutputProcessViewWithAfter
    • getEventType

      public EventType getEventType()
      Description copied from interface: Viewable
      Provides metadata information about the type of object the event collection contains.
      Specified by:
      getEventType in interface Viewable
      Returns:
      metadata for the objects in the collection
    • checkAfterCondition

      public boolean checkAfterCondition(EventBean[] newEvents, StatementContext statementContext)
      Returns true if the after-condition is satisfied.
      Parameters:
      newEvents - is the view new events
      statementContext - context
      Returns:
      indicator for output condition
    • checkAfterCondition

      public boolean checkAfterCondition(Set<MultiKeyArrayOfKeys<EventBean>> newEvents, StatementContext statementContext)
      Returns true if the after-condition is satisfied.
      Parameters:
      newEvents - is the join new events
      statementContext - context
      Returns:
      indicator for output condition
    • checkAfterCondition

      public boolean checkAfterCondition(UniformPair<EventBean[]> newOldEvents, StatementContext statementContext)
      Returns true if the after-condition is satisfied.
      Parameters:
      newOldEvents - is the new and old events pair
      statementContext - context
      Returns:
      indicator for output condition
    • stop

      public void stop(AgentInstanceStopServices services)
      Specified by:
      stop in interface AgentInstanceMgmtCallback