public class LookupInstructionExec extends Object
Constructor and Description |
---|
LookupInstructionExec(int fromStream,
String fromStreamName,
int[] toStreams,
JoinExecTableLookupStrategy[] lookupStrategies,
boolean[] requiredPerStream)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
getFromStream()
Returns the stream number of the stream supplying the event to use for lookup.
|
boolean |
hasRequiredStream()
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.
|
public LookupInstructionExec(int fromStream, String fromStreamName, int[] toStreams, JoinExecTableLookupStrategy[] lookupStrategies, boolean[] requiredPerStream)
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 notpublic int getFromStream()
public boolean hasRequiredStream()
public boolean process(Repository repository, ExprEvaluatorContext exprEvaluatorContext)
repository
- supplies events for lookup, and place to add results toexprEvaluatorContext
- expression evaluation contextpublic void print(IndentWriter writer)
writer
- is the write to output to