Class SubordHashedTableLookupStrategyExpr
java.lang.Object
com.espertech.esper.common.internal.epl.lookup.SubordHashedTableLookupStrategyExpr
- All Implemented Interfaces:
SubordTableLookupStrategy
public class SubordHashedTableLookupStrategyExpr
extends Object
implements SubordTableLookupStrategy
Index lookup strategy for subqueries.
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.epl.lookup.SubordTableLookupStrategy
EPTYPE
-
Constructor Summary
ConstructorDescriptionSubordHashedTableLookupStrategyExpr
(SubordHashedTableLookupStrategyExprFactory factory, PropertyHashedEventTable index) -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()
Returns index to look up in.protected Object
getKey
(EventBean[] eventsPerStream, ExprEvaluatorContext context) Get the index lookup keys.lookup
(EventBean[] eventsPerStream, ExprEvaluatorContext context) Returns matched events for a set of events to look up for.
-
Constructor Details
-
SubordHashedTableLookupStrategyExpr
public SubordHashedTableLookupStrategyExpr(SubordHashedTableLookupStrategyExprFactory factory, PropertyHashedEventTable index)
-
-
Method Details
-
getIndex
Returns index to look up in.- Returns:
- index to use
-
lookup
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 interfaceSubordTableLookupStrategy
- Parameters:
eventsPerStream
- to look upcontext
- context- Returns:
- set of matching events, or null if none matching
-
getKey
Get the index lookup keys.- Parameters:
eventsPerStream
- is the events for each streamcontext
- context- Returns:
- key object
-
getStrategyDesc
- Specified by:
getStrategyDesc
in interfaceSubordTableLookupStrategy
-
toQueryPlan
- Specified by:
toQueryPlan
in interfaceSubordTableLookupStrategy
-