Class LookupInstructionQueryPlanNodeForge
java.lang.Object
com.espertech.esper.common.internal.epl.join.queryplan.QueryPlanNodeForge
com.espertech.esper.common.internal.epl.join.queryplan.LookupInstructionQueryPlanNodeForge
- All Implemented Interfaces:
CodegenMakeable<SAIFFInitializeSymbol>
Query plan for executing a set of lookup instructions and assembling an end result via
a set of assembly instructions.
-
Constructor Summary
ConstructorDescriptionLookupInstructionQueryPlanNodeForge
(int rootStream, String rootStreamName, int numStreams, boolean[] requiredPerStream, List<LookupInstructionPlanForge> lookupInstructions, List<BaseAssemblyNodeFactory> assemblyInstructionFactories) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(QueryPlanNodeForgeVisitor visitor) void
addIndexes
(HashSet<TableLookupIndexReqKey> usedIndexes) static void
assembleFactoriesIntoTree
(BaseAssemblyNodeFactory[] factories, int[] parents, int[][] children) NOTE: Code-generation-invoked method, method name and parameter order mattersint
boolean[]
int
make
(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) protected void
print
(IndentWriter writer) Print a long readable format of the query node to the supplied PrintWriter.Methods inherited from class com.espertech.esper.common.internal.epl.join.queryplan.QueryPlanNodeForge
print
-
Constructor Details
-
LookupInstructionQueryPlanNodeForge
public LookupInstructionQueryPlanNodeForge(int rootStream, String rootStreamName, int numStreams, boolean[] requiredPerStream, List<LookupInstructionPlanForge> lookupInstructions, List<BaseAssemblyNodeFactory> assemblyInstructionFactories) Ctor.- Parameters:
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
- is the bottom-up assembly factory nodes to assemble a lookup result nodes
-
-
Method Details
-
addIndexes
- Specified by:
addIndexes
in classQueryPlanNodeForge
-
make
public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) -
assembleFactoriesIntoTree
public static void assembleFactoriesIntoTree(BaseAssemblyNodeFactory[] factories, int[] parents, int[][] children) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
factories
- factoriesparents
- parents indexeschildren
- children indexes
-
print
Description copied from class:QueryPlanNodeForge
Print a long readable format of the query node to the supplied PrintWriter.- Specified by:
print
in classQueryPlanNodeForge
- Parameters:
writer
- is the indentation writer to print to
-
getRootStream
public int getRootStream() -
getRootStreamName
-
getNumStreams
public int getNumStreams() -
getLookupInstructions
-
getRequiredPerStream
public boolean[] getRequiredPerStream() -
getAssemblyInstructionFactories
-
accept
- Specified by:
accept
in classQueryPlanNodeForge
-