Class LookupInstructionExec
java.lang.Object
com.espertech.esper.common.internal.epl.join.exec.outer.LookupInstructionExec
Execution for a lookup instruction to look up in one or more event streams with a supplied event
and using a given set of lookup strategies, and adding any lookup results to a lighweight repository object
for later result assembly.
-
Constructor Summary
ConstructorDescriptionLookupInstructionExec
(int fromStream, String fromStreamName, int[] toStreams, JoinExecTableLookupStrategy[] lookupStrategies, boolean[] requiredPerStream) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the stream number of the stream supplying the event to use for lookup.boolean
Returns true if there is one or more required substreams or false if no substreams are required joins.void
print
(IndentWriter writer) Output the instruction.boolean
process
(Repository repository, ExprEvaluatorContext exprEvaluatorContext) Execute the instruction adding results to the repository and obtaining events for lookup from the repository.
-
Constructor Details
-
LookupInstructionExec
public LookupInstructionExec(int fromStream, String fromStreamName, int[] toStreams, JoinExecTableLookupStrategy[] lookupStrategies, boolean[] requiredPerStream) Ctor.- Parameters:
fromStream
- - the stream supplying the lookup eventfromStreamName
- - the stream name supplying the lookup eventtoStreams
- - the set of streams to look up inlookupStrategies
- - the strategy to use for each stream to look up inrequiredPerStream
- - indicates which of the lookup streams are required to build a result and which are not
-
-
Method Details
-
getFromStream
public int getFromStream()Returns the stream number of the stream supplying the event to use for lookup.- Returns:
- stream number
-
hasRequiredStream
public boolean hasRequiredStream()Returns true if there is one or more required substreams or false if no substreams are required joins.- Returns:
- true if any substreams are required (inner) joins, or false if not
-
process
Execute the instruction adding results to the repository and obtaining events for lookup from the repository.- Parameters:
repository
- supplies events for lookup, and place to add results toexprEvaluatorContext
- expression evaluation context- Returns:
- true if one or more results, false if no results
-
print
Output the instruction.- Parameters:
writer
- is the write to output to
-