com.espertech.esper.epl.lookup
Class SubordSortedTableLookupStrategy

java.lang.Object
  extended by com.espertech.esper.epl.lookup.SubordSortedTableLookupStrategy
All Implemented Interfaces:
SubordTableLookupStrategy

public class SubordSortedTableLookupStrategy
extends java.lang.Object
implements SubordTableLookupStrategy

Index lookup strategy for subqueries.


Field Summary
protected  PropertySortedEventTable index
          Index to look up in.
protected  SortedAccessStrategy strategy
           
 
Constructor Summary
SubordSortedTableLookupStrategy(SortedAccessStrategy strategy, PropertySortedEventTable index, LookupStrategyDesc strategyDesc)
           
 
Method Summary
 LookupStrategyDesc getStrategyDesc()
           
 java.util.Collection<EventBean> lookup(EventBean[] eventsPerStream, ExprEvaluatorContext context)
          Returns matched events for a set of events to look up for.
 java.lang.String toQueryPlan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

strategy

protected final SortedAccessStrategy strategy

index

protected final PropertySortedEventTable index
Index to look up in.

Constructor Detail

SubordSortedTableLookupStrategy

public SubordSortedTableLookupStrategy(SortedAccessStrategy strategy,
                                       PropertySortedEventTable index,
                                       LookupStrategyDesc strategyDesc)
Method Detail

lookup

public java.util.Collection<EventBean> lookup(EventBean[] eventsPerStream,
                                              ExprEvaluatorContext context)
Description copied from interface: SubordTableLookupStrategy
Returns matched events for a set of events to look up for. Never returns an empty result set, always returns null to indicate no results.

Specified by:
lookup in interface SubordTableLookupStrategy
Parameters:
eventsPerStream - to look up
Returns:
set of matching events, or null if none matching

toQueryPlan

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

getStrategyDesc

public LookupStrategyDesc getStrategyDesc()
Specified by:
getStrategyDesc in interface SubordTableLookupStrategy

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