当前位置: 首页>>代码示例>>Java>>正文


Java ExecNode类代码示例

本文整理汇总了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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:13,代码来源:NestedIterationNode.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:TableOuterLookupNode.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:TableLookupNode.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:14,代码来源:LookupInstructionQueryPlanNode.java

示例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());
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:13,代码来源:TestTableLookupPlan.java

示例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;
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:13,代码来源:ExecNodeQueryStrategy.java

示例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;
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:16,代码来源:NestedIterationNode.java

示例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()]));
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:16,代码来源:LookupInstructionQueryPlanNode.java

示例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());
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:14,代码来源:TestTableLookupPlan.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:QueryPlanNodeAllUnidirectionalOuter.java

示例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;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:QueryPlanNodeNoOp.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:6,代码来源:HistoricalDataPlanNode.java

示例13: getExecNode

import com.espertech.esper.epl.join.exec.base.ExecNode; //导入依赖的package包/类
/**
 * Returns execution node.
 * @return execution node
 */
protected ExecNode getExecNode()
{
    return execNode;
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:9,代码来源:ExecNodeQueryStrategy.java

示例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);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:7,代码来源:TableOuterLookupNode.java

示例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;
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:4,代码来源:QueryPlanNodeNoOp.java


注:本文中的com.espertech.esper.epl.join.exec.base.ExecNode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。