Class CompositeTableLookupStrategy
java.lang.Object
com.espertech.esper.common.internal.epl.join.exec.composite.CompositeTableLookupStrategy
- All Implemented Interfaces:
JoinExecTableLookupStrategy
Lookup on an nested map structure that represents an index for use with at least one range and possibly multiple ranges
and optionally keyed by one or more unique keys.
Use the sorted strategy instead if supporting a single range only and no other unique keys are part of the index.
-
Constructor Summary
ConstructorDescriptionCompositeTableLookupStrategy
(EventType eventType, int lookupStream, ExprEvaluator hashKeys, QueryGraphValueEntryRange[] rangeKeyPairs, PropertyCompositeEventTable index) -
Method Summary
Modifier and TypeMethodDescriptionReturns event type of the lookup event.getIndex()
Returns index to look up in.lookup
(EventBean theEvent, Cursor cursor, ExprEvaluatorContext context) Returns matched events for a event to look up for.
-
Constructor Details
-
CompositeTableLookupStrategy
public CompositeTableLookupStrategy(EventType eventType, int lookupStream, ExprEvaluator hashKeys, QueryGraphValueEntryRange[] rangeKeyPairs, PropertyCompositeEventTable index)
-
-
Method Details
-
getEventType
Returns event type of the lookup event.- Returns:
- event type of the lookup event
-
getIndex
Returns index to look up in.- Returns:
- index to use
-
lookup
Description copied from interface:JoinExecTableLookupStrategy
Returns matched events for a event to look up for. Never returns an empty result set, always returns null to indicate no results.- Specified by:
lookup
in interfaceJoinExecTableLookupStrategy
- Parameters:
theEvent
- to look upcursor
- the path in the query that the lookup tookcontext
- expression evaluation context- Returns:
- set of matching events, or null if none matching
-
getLookupStrategyType
- Specified by:
getLookupStrategyType
in interfaceJoinExecTableLookupStrategy
-