public class LookupInstructionExecNode extends ExecNode
Modifier and Type | Class and Description |
---|---|
static class |
LookupInstructionExecNode.MyResultAssembler
Receives result rows posted by result set assembly nodes.
|
Constructor and Description |
---|
LookupInstructionExecNode(int rootStream,
String rootStreamName,
int numStreams,
LookupInstructionExec[] lookupInstructions,
boolean[] requiredPerStream,
List<BaseAssemblyNodeFactory> assemblyInstructionFactories)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
print(IndentWriter writer)
Output the execution strategy.
|
void |
process(EventBean lookupEvent,
EventBean[] prefillPath,
Collection<EventBean[]> resultFinalRows,
ExprEvaluatorContext exprEvaluatorContext)
Process single event using the prefill events to compile lookup results.
|
public LookupInstructionExecNode(int rootStream, String rootStreamName, int numStreams, LookupInstructionExec[] lookupInstructions, boolean[] requiredPerStream, List<BaseAssemblyNodeFactory> assemblyInstructionFactories)
rootStream
- is the stream supplying the lookup eventrootStreamName
- is the name of the stream supplying the lookup eventnumStreams
- is the number of streamslookupInstructions
- is a list of lookups to performrequiredPerStream
- indicates which streams are required and which are optional in the lookupassemblyInstructionFactories
- factories for assemblypublic void process(EventBean lookupEvent, EventBean[] prefillPath, Collection<EventBean[]> resultFinalRows, ExprEvaluatorContext exprEvaluatorContext)
ExecNode
process
in class ExecNode
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.resultFinalRows
- is the list of tuples to add a result row toexprEvaluatorContext
- context for expression evaluationpublic void print(IndentWriter writer)
ExecNode