com.espertech.esper.epl.named
Class NamedWindowLookupStrategyIndexed

java.lang.Object
  extended by com.espertech.esper.epl.named.NamedWindowLookupStrategyIndexed
All Implemented Interfaces:
NamedWindowLookupStrategy

public class NamedWindowLookupStrategyIndexed
extends java.lang.Object
implements NamedWindowLookupStrategy

Uses an index to determine event to be deleted or selected from a named window.


Constructor Summary
NamedWindowLookupStrategyIndexed(ExprEvaluator joinExpr, SubordTableLookupStrategy tableLookupStrategy)
          Ctor.
 
Method Summary
 SubordTableLookupStrategy getTableLookupStrategy()
           
 EventBean[] lookup(EventBean[] newData, ExprEvaluatorContext exprEvaluatorContext)
          Determines the events to be deleted from a named window.
 java.lang.String toQueryPlan()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedWindowLookupStrategyIndexed

public NamedWindowLookupStrategyIndexed(ExprEvaluator joinExpr,
                                        SubordTableLookupStrategy tableLookupStrategy)
Ctor.

Parameters:
joinExpr - the validated where clause of the on-delete
tableLookupStrategy - the strategy for looking up in an index the matching events using correlation
Method Detail

getTableLookupStrategy

public SubordTableLookupStrategy getTableLookupStrategy()

lookup

public EventBean[] lookup(EventBean[] newData,
                          ExprEvaluatorContext exprEvaluatorContext)
Description copied from interface: NamedWindowLookupStrategy
Determines the events to be deleted from a named window.

Specified by:
lookup in interface NamedWindowLookupStrategy
Parameters:
newData - is the correlation events
exprEvaluatorContext - expression evaluation context
Returns:
the events to delete from the named window

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toQueryPlan

public java.lang.String toQueryPlan()
Specified by:
toQueryPlan in interface NamedWindowLookupStrategy

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