當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。