Class TableLookupExecNode
java.lang.Object
com.espertech.esper.common.internal.epl.join.strategy.ExecNode
com.espertech.esper.common.internal.epl.join.exec.base.TableLookupExecNode
- Direct Known Subclasses:
TableLookupExecNodeTableLocking
Execution node for lookup in a table.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTableLookupExecNode
(int indexedStream, JoinExecTableLookupStrategy lookupStrategy) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns target stream for lookup.Returns strategy for lookup.void
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.protected void
processResults
(EventBean[] prefillPath, Collection<EventBean[]> result, Set<EventBean> joinedEvents)
-
Field Details
-
lookupStrategy
-
-
Constructor Details
-
TableLookupExecNode
Ctor.- Parameters:
indexedStream
- - stream indexed for lookuplookupStrategy
- - strategy to use for lookup (full table/indexed)
-
-
Method Details
-
getLookupStrategy
Returns strategy for lookup.- Returns:
- lookup strategy
-
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
-
processResults
protected void processResults(EventBean[] prefillPath, Collection<EventBean[]> result, Set<EventBean> joinedEvents) -
getIndexedStream
public int getIndexedStream()Returns target stream for lookup.- Returns:
- indexed stream
-
print
Description copied from class:ExecNode
Output the execution strategy.
-