本文整理汇总了Java中com.espertech.esper.epl.join.exec.base.ExecNode类的典型用法代码示例。如果您正苦于以下问题:Java ExecNode类的具体用法?Java ExecNode怎么用?Java ExecNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ExecNode类属于com.espertech.esper.epl.join.exec.base包,在下文中一共展示了ExecNode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey, EventTable>[] indexPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexList, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks) {
if (childNodes.isEmpty()) {
throw new IllegalStateException("Zero child nodes for nested iteration");
}
NestedIterationExecNode execNode = new NestedIterationExecNode(nestingOrder);
for (QueryPlanNode child : childNodes) {
ExecNode childExec = child.makeExec(statementName, statementId, annotations, indexPerStream, streamTypes, streamViews, historicalStreamIndexList, viewExternal, tableSecondaryIndexLocks);
execNode.addChildNode(childExec);
}
return execNode;
}
示例2: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks) {
JoinExecTableLookupStrategy lookupStrategy = tableLookupPlan.makeStrategy(statementName, statementId, annotations, indexesPerStream, streamTypes, viewExternal);
int indexedStream = tableLookupPlan.getIndexedStream();
if (tableSecondaryIndexLocks[indexedStream] != null) {
return new TableOuterLookupExecNodeTableLocking(indexedStream, lookupStrategy, tableSecondaryIndexLocks[indexedStream]);
}
return new TableOuterLookupExecNode(tableLookupPlan.getIndexedStream(), lookupStrategy);
}
示例3: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks) {
JoinExecTableLookupStrategy lookupStrategy = tableLookupPlan.makeStrategy(statementName, statementId, annotations, indexesPerStream, streamTypes, viewExternal);
int indexedStream = tableLookupPlan.getIndexedStream();
if (tableSecondaryIndexLocks[indexedStream] != null) {
return new TableLookupExecNodeTableLocking(indexedStream, lookupStrategy, tableSecondaryIndexLocks[indexedStream]);
}
return new TableLookupExecNode(indexedStream, lookupStrategy);
}
示例4: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks) {
LookupInstructionExec[] execs = new LookupInstructionExec[lookupInstructions.size()];
int count = 0;
for (LookupInstructionPlan instruction : lookupInstructions) {
LookupInstructionExec exec = instruction.makeExec(statementName, statementId, annotations, indexesPerStream, streamTypes, streamViews, historicalStreamIndexLists, viewExternal);
execs[count] = exec;
count++;
}
return new LookupInstructionExecNode(rootStream, rootStreamName,
numStreams, execs, requiredPerStream, assemblyInstructionFactories);
}
示例5: testMakeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public void testMakeExec() {
Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream = new Map[2];
indexesPerStream[1] = new HashMap<TableLookupIndexReqKey, EventTable>();
indexesPerStream[1].put(new TableLookupIndexReqKey("idx1"), new UnindexedEventTableImpl(0));
TableLookupNode spec = new TableLookupNode(new FullTableScanLookupPlan(0, 1, new TableLookupIndexReqKey("idx1")));
ExecNode execNode = spec.makeExec("ABC", 1, null, indexesPerStream, null, new Viewable[2], null, new VirtualDWView[2], new ReentrantLock[2]);
TableLookupExecNode exec = (TableLookupExecNode) execNode;
assertSame(indexesPerStream[1].get(new TableLookupIndexReqKey("idx1")), ((FullTableScanLookupStrategy) exec.getLookupStrategy()).getEventIndex());
assertEquals(1, exec.getIndexedStream());
}
示例6: ExecNodeQueryStrategy
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
/**
* CTor.
* @param forStream - stream the strategy is for
* @param numStreams - number of streams in total
* @param execNode - execution node for building join tuple set
*/
public ExecNodeQueryStrategy(int forStream, int numStreams, ExecNode execNode)
{
this.forStream = forStream;
this.numStreams = numStreams;
this.execNode = execNode;
}
示例7: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, String statementId, Annotation[] annotations, Map<String, EventTable>[] indexPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexList, VirtualDWView[] viewExternal)
{
if (childNodes.isEmpty())
{
throw new IllegalStateException("Zero child nodes for nested iteration");
}
NestedIterationExecNode execNode = new NestedIterationExecNode(nestingOrder);
for (QueryPlanNode child : childNodes)
{
ExecNode childExec = child.makeExec(statementName, statementId, annotations, indexPerStream, streamTypes, streamViews, historicalStreamIndexList, viewExternal);
execNode.addChildNode(childExec);
}
return execNode;
}
示例8: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, String statementId, Annotation[] annotations, Map<String, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal)
{
LookupInstructionExec execs[] = new LookupInstructionExec[lookupInstructions.size()];
int count = 0;
for (LookupInstructionPlan instruction : lookupInstructions)
{
LookupInstructionExec exec = instruction.makeExec(statementName, statementId, annotations, indexesPerStream, streamTypes, streamViews, historicalStreamIndexLists, viewExternal);
execs[count] = exec;
count++;
}
return new LookupInstructionExecNode(rootStream, rootStreamName,
numStreams, execs, requiredPerStream, assemblyInstructions.toArray(new BaseAssemblyNode[assemblyInstructions.size()]));
}
示例9: testMakeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public void testMakeExec()
{
Map<String,EventTable>[] indexesPerStream = new Map[2];
indexesPerStream[1] = new HashMap<String,EventTable>();
indexesPerStream[1].put("idx1", new UnindexedEventTable(0));
TableLookupNode spec = new TableLookupNode(new FullTableScanLookupPlan(0, 1, "idx1"));
ExecNode execNode = spec.makeExec("ABC", "001", null, indexesPerStream, null, new Viewable[2], null, new VirtualDWView[2]);
TableLookupExecNode exec = (TableLookupExecNode) execNode;
assertSame(indexesPerStream[1].get("idx1"), ((FullTableScanLookupStrategy) exec.getLookupStrategy()).getEventIndex());
assertEquals(1, exec.getIndexedStream());
}
示例10: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks) {
return new ExecNodeAllUnidirectionalOuter(streamNum, streamTypes.length);
}
示例11: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks) {
return NOOP;
}
示例12: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, int statementId, Annotation[] annotations, Map<TableLookupIndexReqKey, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal, Lock[] tableSecondaryIndexLocks) {
Pair<HistoricalIndexLookupStrategy, PollResultIndexingStrategy> pair = historicalStreamIndexLists[streamNum].getStrategy(lookupStreamNum);
HistoricalEventViewable viewable = (HistoricalEventViewable) streamViews[streamNum];
return new HistoricalDataExecNode(viewable, pair.getSecond(), pair.getFirst(), numStreams, streamNum);
}
示例13: getExecNode
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
/**
* Returns execution node.
* @return execution node
*/
protected ExecNode getExecNode()
{
return execNode;
}
示例14: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, String statementId, Annotation[] annotations, Map<String, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal)
{
JoinExecTableLookupStrategy lookupStrategy = tableLookupPlan.makeStrategy(statementName, statementId, annotations, indexesPerStream, streamTypes, viewExternal);
return new TableOuterLookupExecNode(tableLookupPlan.getIndexedStream(), lookupStrategy);
}
示例15: makeExec
import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
public ExecNode makeExec(String statementName, String statementId, Annotation[] annotations, Map<String, EventTable>[] indexesPerStream, EventType[] streamTypes, Viewable[] streamViews, HistoricalStreamIndexList[] historicalStreamIndexLists, VirtualDWView[] viewExternal) {
return NOOP;
}