public class SortedTableLookupStrategy extends Object implements JoinExecTableLookupStrategy
Use the composite strategy if supporting multiple ranges or if range is in combination with unique key.
Constructor and Description |
---|
SortedTableLookupStrategy(int lookupStream,
int numStreams,
QueryGraphValueEntryRange rangeKeyPair,
Class coercionType,
PropertySortedEventTable index) |
Modifier and Type | Method and Description |
---|---|
PropertySortedEventTable |
getIndex()
Returns index to look up in.
|
LookupStrategyDesc |
getStrategyDesc() |
Set<EventBean> |
lookup(EventBean theEvent,
Cursor cursor,
ExprEvaluatorContext exprEvaluatorContext)
Returns matched events for a event to look up for.
|
String |
toString() |
public SortedTableLookupStrategy(int lookupStream, int numStreams, QueryGraphValueEntryRange rangeKeyPair, Class coercionType, PropertySortedEventTable index)
public PropertySortedEventTable getIndex()
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext exprEvaluatorContext)
JoinExecTableLookupStrategy
lookup
in interface JoinExecTableLookupStrategy
theEvent
- to look upcursor
- the path in the query that the lookup tookexprEvaluatorContext
- expression evaluation contextpublic LookupStrategyDesc getStrategyDesc()
getStrategyDesc
in interface JoinExecTableLookupStrategy