com.espertech.esper.epl.view
Class OutputProcessViewBaseWAfter

java.lang.Object
  extended by com.espertech.esper.epl.view.OutputProcessViewBase
      extended by com.espertech.esper.epl.view.OutputProcessViewBaseWAfter
All Implemented Interfaces:
JoinSetIndicator, JoinSetProcessor, OutputProcessViewTerminable, EventCollection, View, Viewable, java.lang.Iterable<EventBean>
Direct Known Subclasses:
OutputProcessViewConditionDefault, OutputProcessViewConditionFirst, OutputProcessViewConditionSnapshot, OutputProcessViewDirectDistinctOrAfter

public abstract class OutputProcessViewBaseWAfter
extends OutputProcessViewBase


Field Summary
protected  boolean isAfterConditionSatisfied
           
 
Fields inherited from class com.espertech.esper.epl.view.OutputProcessViewBase
childView, joinExecutionStrategy, parentView, resultSetProcessor
 
Constructor Summary
protected OutputProcessViewBaseWAfter(ResultSetProcessor resultSetProcessor, java.lang.Long afterConditionTime, java.lang.Integer afterConditionNumberOfEvents, boolean afterConditionSatisfied)
           
 
Method Summary
 boolean checkAfterCondition(EventBean[] newEvents, StatementContext statementContext)
          Returns true if the after-condition is satisfied.
 boolean checkAfterCondition(java.util.Set<MultiKey<EventBean>> newEvents, StatementContext statementContext)
          Returns true if the after-condition is satisfied.
 boolean checkAfterCondition(UniformPair<EventBean[]> newOldEvents, StatementContext statementContext)
          Returns true if the after-condition is satisfied.
 
Methods inherited from class com.espertech.esper.epl.view.OutputProcessViewBase
addView, getEventType, getParent, getViews, hasViews, removeAllViews, removeView, setJoinExecutionStrategy, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.view.View
update
 
Methods inherited from interface com.espertech.esper.view.EventCollection
iterator
 
Methods inherited from interface com.espertech.esper.epl.join.base.JoinSetProcessor
process
 
Methods inherited from interface com.espertech.esper.epl.view.OutputProcessViewTerminable
terminated
 

Field Detail

isAfterConditionSatisfied

protected boolean isAfterConditionSatisfied
Constructor Detail

OutputProcessViewBaseWAfter

protected OutputProcessViewBaseWAfter(ResultSetProcessor resultSetProcessor,
                                      java.lang.Long afterConditionTime,
                                      java.lang.Integer afterConditionNumberOfEvents,
                                      boolean afterConditionSatisfied)
Method Detail

checkAfterCondition

public boolean checkAfterCondition(EventBean[] newEvents,
                                   StatementContext statementContext)
Returns true if the after-condition is satisfied.

Parameters:
newEvents - is the view new events
Returns:
indicator for output condition

checkAfterCondition

public boolean checkAfterCondition(java.util.Set<MultiKey<EventBean>> newEvents,
                                   StatementContext statementContext)
Returns true if the after-condition is satisfied.

Parameters:
newEvents - is the join new events
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
Returns:
indicator for output condition

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com