public class HistoricalDataQueryStrategy extends Object implements QueryStrategy
HistoricalEventViewable
to perform lookup for a given stream using the poll method on a viewable.Constructor and Description |
---|
HistoricalDataQueryStrategy(int myStreamNumber,
int historicalStreamNumber,
HistoricalEventViewable historicalEventViewable,
boolean isOuterJoin,
ExprEvaluator outerJoinCompareNode,
HistoricalIndexLookupStrategy indexLookupStrategy,
PollResultIndexingStrategy pollResultIndexingStrategy)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
lookup(EventBean[] lookupEvents,
Set<MultiKey<EventBean>> joinSet,
ExprEvaluatorContext exprEvaluatorContext)
Look up events returning tuples of joined events.
|
public HistoricalDataQueryStrategy(int myStreamNumber, int historicalStreamNumber, HistoricalEventViewable historicalEventViewable, boolean isOuterJoin, ExprEvaluator outerJoinCompareNode, HistoricalIndexLookupStrategy indexLookupStrategy, PollResultIndexingStrategy pollResultIndexingStrategy)
myStreamNumber
- is the strategy's stream numberhistoricalStreamNumber
- is the stream number of the view to be polledhistoricalEventViewable
- is the view to be polled fromisOuterJoin
- is this is an outer joinouterJoinCompareNode
- is the node to perform the on-comparison for outer joinsindexLookupStrategy
- the strategy to use for limiting the cache result set
to only those rows that match filter criteriapollResultIndexingStrategy
- the strategy for indexing poll-results such that a
strategy can use the index instead of a full table scan to resolve rowspublic void lookup(EventBean[] lookupEvents, Set<MultiKey<EventBean>> joinSet, ExprEvaluatorContext exprEvaluatorContext)
QueryStrategy
lookup
in interface QueryStrategy
lookupEvents
- - events to use to perform the joinjoinSet
- - result join tuples of eventsexprEvaluatorContext
- expression evaluation context