當前位置: 首頁>>代碼示例>>Java>>正文


Java FullTableScanLookupStrategy類代碼示例

本文整理匯總了Java中com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy的典型用法代碼示例。如果您正苦於以下問題:Java FullTableScanLookupStrategy類的具體用法?Java FullTableScanLookupStrategy怎麽用?Java FullTableScanLookupStrategy使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


FullTableScanLookupStrategy類屬於com.espertech.esper.epl.join.exec.base包,在下文中一共展示了FullTableScanLookupStrategy類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setUp

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的package包/類
public void setUp() {
    indexedEventOne = SupportEventBeanFactory.makeEvents(new String[]{"s1_1", "s1_2"});
    indexedEventTwo = SupportEventBeanFactory.makeEvents(new String[]{"s2_1", "s2_2"});

    newEventOne = SupportEventBeanFactory.makeEvents(new String[]{"s1_3"});
    newEventTwo = SupportEventBeanFactory.makeEvents(new String[]{"s2_3"});

    indexLeft = new UnindexedEventTableImpl(1);
    indexLeft.add(indexedEventOne, null);
    indexRight = new UnindexedEventTableImpl(1);
    indexRight.add(indexedEventTwo, null);

    QueryStrategy[] queryStrategies = new QueryStrategy[2];
    TableLookupExecNode lookupLeft = new TableLookupExecNode(1, new FullTableScanLookupStrategy(indexRight));
    TableLookupExecNode lookupRight = new TableLookupExecNode(0, new FullTableScanLookupStrategy(indexLeft));
    queryStrategies[0] = new ExecNodeQueryStrategy(0, 2, lookupLeft);
    queryStrategies[1] = new ExecNodeQueryStrategy(1, 2, lookupRight);

    Map<TableLookupIndexReqKey, EventTable>[] indexes = new Map[2];
    indexes[0] = new HashMap<TableLookupIndexReqKey, EventTable>();
    indexes[1] = new HashMap<TableLookupIndexReqKey, EventTable>();
    indexes[0].put(new TableLookupIndexReqKey("idxLeft"), indexLeft);
    indexes[1].put(new TableLookupIndexReqKey("idxLeft"), indexRight);

    joinSetComposerImpl = new JoinSetComposerImpl(true, indexes, queryStrategies, false, null, true);
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:27,代碼來源:TestJoinSetComposerImpl.java

示例2: setUp

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的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

示例3: setUp

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的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

示例4: testMakeExec

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的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

示例5: testLookup

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的package包/類
public void testLookup() {
    FullTableScanLookupPlan spec = new FullTableScanLookupPlan(0, 1, new TableLookupIndexReqKey("idx2"));

    Map<TableLookupIndexReqKey, EventTable>[] indexes = new Map[2];
    indexes[0] = new HashMap<TableLookupIndexReqKey, EventTable>();
    indexes[1] = new HashMap<TableLookupIndexReqKey, EventTable>();
    indexes[1].put(new TableLookupIndexReqKey("idx2"), unindexedEventIndex);

    JoinExecTableLookupStrategy lookupStrategy = spec.makeStrategy("ABC", 1, null, indexes, null, new VirtualDWView[2]);

    FullTableScanLookupStrategy strategy = (FullTableScanLookupStrategy) lookupStrategy;
    assertEquals(unindexedEventIndex, strategy.getEventIndex());
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:14,代碼來源:TestFullTableScanLookupPlan.java

示例6: setUp

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的package包/類
public void setUp()
{
    indexedEventOne = SupportEventBeanFactory.makeEvents(new String[] { "s1_1", "s1_2"});
    indexedEventTwo = SupportEventBeanFactory.makeEvents(new String[] { "s2_1", "s2_2"});

    newEventOne = SupportEventBeanFactory.makeEvents(new String[] { "s1_3"});
    newEventTwo = SupportEventBeanFactory.makeEvents(new String[] { "s2_3"});

    indexLeft = new UnindexedEventTable(1);
    indexLeft.add(indexedEventOne);
    indexRight = new UnindexedEventTable(1);
    indexRight.add(indexedEventTwo);

    QueryStrategy[] queryStrategies = new QueryStrategy[2];
    TableLookupExecNode lookupLeft = new TableLookupExecNode(1, new FullTableScanLookupStrategy(indexRight));
    TableLookupExecNode lookupRight = new TableLookupExecNode(0, new FullTableScanLookupStrategy(indexLeft));
    queryStrategies[0] = new ExecNodeQueryStrategy(0, 2, lookupLeft);
    queryStrategies[1] = new ExecNodeQueryStrategy(1, 2, lookupRight);

    Map<String,EventTable>[] indexes = new Map[2];
    indexes[0] = new HashMap<String,EventTable>();
    indexes[1] = new HashMap<String,EventTable>();
    indexes[0].put("idxLeft", indexLeft);
    indexes[1].put("idxLeft", indexRight);

    joinSetComposerImpl = new JoinSetComposerImpl(indexes, queryStrategies, false, null, true);
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:28,代碼來源:TestJoinSetComposerImpl.java

示例7: testMakeExec

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的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

示例8: testLookup

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的package包/類
public void testLookup()
{
    FullTableScanLookupPlan spec = new FullTableScanLookupPlan(0, 1, "idx2");

    Map<String,EventTable>[] indexes = new Map[2];
    indexes[0] = new HashMap<String,EventTable>();
    indexes[1] = new HashMap<String,EventTable>();
    indexes[1].put("idx2", unindexedEventIndex);

    JoinExecTableLookupStrategy lookupStrategy = spec.makeStrategy("ABC", "001", null, indexes, null, new VirtualDWView[2]);

    FullTableScanLookupStrategy strategy = (FullTableScanLookupStrategy) lookupStrategy;
    assertEquals(unindexedEventIndex, strategy.getEventIndex());
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:15,代碼來源:TestFullTableScanLookupPlan.java

示例9: makeStrategyInternal

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的package包/類
public JoinExecTableLookupStrategy makeStrategyInternal(EventTable[] eventTable, EventType[] eventTypes) {
    UnindexedEventTable index = (UnindexedEventTable) eventTable[0];
    return new FullTableScanLookupStrategy(index);
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:5,代碼來源:FullTableScanLookupPlan.java

示例10: setUp

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的package包/類
public void setUp() {
    index = new UnindexedEventTableImpl(0);
    exec = new TableOuterLookupExecNode(1, new FullTableScanLookupStrategy(index));
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:5,代碼來源:TestTableOuterLookupExecNode.java

示例11: makeStrategyInternal

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的package包/類
public JoinExecTableLookupStrategy makeStrategyInternal(EventTable eventTable, EventType[] eventTypes)
{
    UnindexedEventTable index = (UnindexedEventTable) eventTable;
    return new FullTableScanLookupStrategy(index);
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:6,代碼來源:FullTableScanLookupPlan.java

示例12: setUp

import com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy; //導入依賴的package包/類
public void setUp()
{
    index = new UnindexedEventTable(0);
    exec = new TableOuterLookupExecNode(1, new FullTableScanLookupStrategy(index));
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:6,代碼來源:TestTableOuterLookupExecNode.java


注:本文中的com.espertech.esper.epl.join.exec.base.FullTableScanLookupStrategy類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。