public class CompositeTableLookupStrategy extends Object implements JoinExecTableLookupStrategy
Use the sorted strategy instead if supporting a single range only and no other unique keys are part of the index.
Constructor and Description |
---|
CompositeTableLookupStrategy(EventType eventType,
int lookupStream,
List<QueryGraphValueEntryHashKeyed> hashKeys,
List<QueryGraphValueEntryRange> rangeKeyPairs,
PropertyCompositeEventTable index) |
Modifier and Type | Method and Description |
---|---|
EventType |
getEventType()
Returns event type of the lookup event.
|
PropertyCompositeEventTable |
getIndex()
Returns index to look up in.
|
LookupStrategyDesc |
getStrategyDesc() |
Set<EventBean> |
lookup(EventBean theEvent,
Cursor cursor,
ExprEvaluatorContext context)
Returns matched events for a event to look up for.
|
String |
toString() |
public CompositeTableLookupStrategy(EventType eventType, int lookupStream, List<QueryGraphValueEntryHashKeyed> hashKeys, List<QueryGraphValueEntryRange> rangeKeyPairs, PropertyCompositeEventTable index)
public EventType getEventType()
public PropertyCompositeEventTable getIndex()
public Set<EventBean> lookup(EventBean theEvent, Cursor cursor, ExprEvaluatorContext context)
JoinExecTableLookupStrategy
lookup
in interface JoinExecTableLookupStrategy
theEvent
- to look upcursor
- the path in the query that the lookup tookcontext
- expression evaluation contextpublic LookupStrategyDesc getStrategyDesc()
getStrategyDesc
in interface JoinExecTableLookupStrategy