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


Java NestedIterationExecNode类代码示例

本文整理汇总了Java中com.espertech.esper.epl.join.exec.base.NestedIterationExecNode的典型用法代码示例。如果您正苦于以下问题:Java NestedIterationExecNode类的具体用法?Java NestedIterationExecNode怎么用?Java NestedIterationExecNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NestedIterationExecNode类属于com.espertech.esper.epl.join.exec.base包,在下文中一共展示了NestedIterationExecNode类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import com.espertech.esper.epl.join.exec.base.NestedIterationExecNode; //导入依赖的package包/类
public void setUp() {
    UnindexedEventTable[] indexes = new UnindexedEventTable[4];
    for (int i = 0; i < indexes.length; i++) {
        indexes[i] = new UnindexedEventTableImpl(0);
    }

    exec = new NestedIterationExecNode(new int[]{3, 0, 1});
    exec.addChildNode(new TableLookupExecNode(3, new FullTableScanLookupStrategy(indexes[3])));
    exec.addChildNode(new TableLookupExecNode(0, new FullTableScanLookupStrategy(indexes[0])));
    exec.addChildNode(new TableLookupExecNode(1, new FullTableScanLookupStrategy(indexes[1])));

    streamEvents = new EventBean[4][2];
    streamEvents[0] = SupportEventBeanFactory.makeEvents_A(new String[]{"a1", "a2"});
    streamEvents[1] = SupportEventBeanFactory.makeEvents_B(new String[]{"b1", "b2"});
    streamEvents[2] = SupportEventBeanFactory.makeEvents_C(new String[]{"c1", "c2"});
    streamEvents[3] = SupportEventBeanFactory.makeEvents_D(new String[]{"d1", "d2"});

    // Fill with data
    indexes[0].add(streamEvents[0], null);
    indexes[1].add(streamEvents[1], null);
    indexes[2].add(streamEvents[2], null);
    indexes[3].add(streamEvents[3], null);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:24,代码来源:TestNestedIterationExecNode.java

示例2: setUp

import com.espertech.esper.epl.join.exec.base.NestedIterationExecNode; //导入依赖的package包/类
public void setUp()
{
    UnindexedEventTable[] indexes = new UnindexedEventTable[4];
    for (int i = 0; i < indexes.length; i++)
    {
        indexes[i] = new UnindexedEventTable(0);
    }

    exec = new NestedIterationExecNode(new int[] {3, 0, 1});
    exec.addChildNode(new TableLookupExecNode(3, new FullTableScanLookupStrategy(indexes[3])));
    exec.addChildNode(new TableLookupExecNode(0, new FullTableScanLookupStrategy(indexes[0])));
    exec.addChildNode(new TableLookupExecNode(1, new FullTableScanLookupStrategy(indexes[1])));

    streamEvents = new EventBean[4][2];
    streamEvents[0] = SupportEventBeanFactory.makeEvents_A(new String[] {"a1", "a2"});
    streamEvents[1] = SupportEventBeanFactory.makeEvents_B(new String[] {"b1", "b2"});
    streamEvents[2] = SupportEventBeanFactory.makeEvents_C(new String[] {"c1", "c2"});
    streamEvents[3] = SupportEventBeanFactory.makeEvents_D(new String[] {"d1", "d2"});

    // Fill with data
    indexes[0].add(streamEvents[0]);
    indexes[1].add(streamEvents[1]);
    indexes[2].add(streamEvents[2]);
    indexes[3].add(streamEvents[3]);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:26,代码来源:TestNestedIterationExecNode.java

示例3: makeExec

import com.espertech.esper.epl.join.exec.base.NestedIterationExecNode; //导入依赖的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

示例4: makeExec

import com.espertech.esper.epl.join.exec.base.NestedIterationExecNode; //导入依赖的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


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