Class HistoricalDataExecNode
java.lang.Object
com.espertech.esper.common.internal.epl.join.strategy.ExecNode
com.espertech.esper.common.internal.epl.join.exec.base.HistoricalDataExecNode
Execution node for executing a join or outer join against a historical data source,
using an lookup strategy for looking up into cached indexes, and an indexing strategy for indexing poll results
for future lookups.
-
Constructor Summary
ConstructorDescriptionHistoricalDataExecNode
(HistoricalEventViewable historicalEventViewable, PollResultIndexingStrategy indexingStrategy, HistoricalIndexLookupStrategy indexLookupStrategy, int numStreams, int historicalStreamNumber) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
print
(IndentWriter writer) Output the execution strategy.void
process
(EventBean lookupEvent, EventBean[] prefillPath, Collection<EventBean[]> result, ExprEvaluatorContext exprEvaluatorContext) Process single event using the prefill events to compile lookup results.
-
Constructor Details
-
HistoricalDataExecNode
public HistoricalDataExecNode(HistoricalEventViewable historicalEventViewable, PollResultIndexingStrategy indexingStrategy, HistoricalIndexLookupStrategy indexLookupStrategy, int numStreams, int historicalStreamNumber) Ctor.- Parameters:
historicalEventViewable
- the view of the historicalindexingStrategy
- the strategy to index poll result for future useindexLookupStrategy
- the strategy to use past indexed resultsnumStreams
- the number of streams in the joinhistoricalStreamNumber
- the stream number of the historical
-
-
Method Details
-
process
public void process(EventBean lookupEvent, EventBean[] prefillPath, Collection<EventBean[]> result, ExprEvaluatorContext exprEvaluatorContext) Description copied from class:ExecNode
Process single event using the prefill events to compile lookup results.- Specified by:
process
in classExecNode
- Parameters:
lookupEvent
- - event to look up for or query forprefillPath
- - set of events currently in the example tuple to serve as a prototype for result rows.result
- is the list of tuples to add a result row toexprEvaluatorContext
- context for expression evaluation
-
print
Description copied from class:ExecNode
Output the execution strategy.
-