Class TableOuterLookupExecNode
java.lang.Object
com.espertech.esper.common.internal.epl.join.strategy.ExecNode
com.espertech.esper.common.internal.epl.join.exec.base.TableOuterLookupExecNode
- Direct Known Subclasses:
TableOuterLookupExecNodeTableLocking
Execution node for lookup in a table for outer joins. This execution node thus generates
rows even if no joined events could be found, the joined table events are set to null if no
joined events are found.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTableOuterLookupExecNode
(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
-
TableOuterLookupExecNode
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.
-