Class LookupInstructionPlan
java.lang.Object
com.espertech.esper.common.internal.epl.join.queryplanouter.LookupInstructionPlan
Plan for lookup using a from-stream event looking up one or more to-streams using a specified lookup plan for each
to-stream.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLookupInstructionPlan
(int fromStream, String fromStreamName, int[] toStreams, TableLookupPlan[] lookupPlans, HistoricalDataPlanNode[] historicalPlans, boolean[] requiredPerStream) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIndexes
(HashSet<TableLookupIndexReqKey> usedIndexes) int
Object[]
boolean[]
int[]
makeExec
(AgentInstanceContext agentInstanceContext, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, VirtualDWView[] viewExternal) void
print
(IndentWriter writer) Output the planned instruction.
-
Field Details
-
EPTYPE
-
-
Constructor Details
-
LookupInstructionPlan
public LookupInstructionPlan(int fromStream, String fromStreamName, int[] toStreams, TableLookupPlan[] lookupPlans, HistoricalDataPlanNode[] historicalPlans, 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 inlookupPlans
- - the plan to use for each stream to look up inrequiredPerStream
- - indicates which of the lookup streams are required to build a result and which are nothistoricalPlans
- - plans for use with historical streams
-
-
Method Details
-
makeExec
public LookupInstructionExec makeExec(AgentInstanceContext agentInstanceContext, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, VirtualDWView[] viewExternal) -
print
Output the planned instruction.- Parameters:
writer
- to output to
-
addIndexes
-
getFromStream
public int getFromStream() -
getFromStreamName
-
getToStreams
public int[] getToStreams() -
getLookupPlans
-
getRequiredPerStream
public boolean[] getRequiredPerStream() -
getHistoricalPlans
-