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


Java PropertyIndexedEventTableFactory類代碼示例

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


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

示例1: index

import com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory; //導入依賴的package包/類
public EventTable[] index(List<EventBean> pollResult, boolean isActiveCache, StatementContext statementContext) {
    if (!isActiveCache) {
        return new EventTable[]{new UnindexedEventTableList(pollResult, streamNum)};
    }
    PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(streamNum, eventType, propertyNames, false, null);
    ExprEvaluatorContextStatement evaluatorContextStatement = new ExprEvaluatorContextStatement(statementContext, false);
    EventTable[] tables = factory.makeEventTables(new EventTableFactoryTableIdentStmt(statementContext), evaluatorContextStatement);
    for (EventTable table : tables) {
        table.add(pollResult.toArray(new EventBean[pollResult.size()]), evaluatorContextStatement);
    }
    return tables;
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:13,代碼來源:PollResultIndexingStrategyIndex.java

示例2: setUp

import com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory; //導入依賴的package包/類
public void setUp() {
    EventType eventTypeIndex = SupportEventTypeFactory.createBeanType(SupportBean.class);
    PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(0, eventTypeIndex, new String[]{"theString"}, false, null);
    index = (PropertyIndexedEventTable) factory.makeEventTables(null, null)[0];

    EventType eventTypeKeyGen = SupportEventTypeFactory.createBeanType(SupportMarketDataBean.class);

    exec = new TableLookupExecNode(1, new IndexedTableLookupStrategy(eventTypeKeyGen, new String[]{"symbol"}, index));
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:10,代碼來源:TestTableLookupExecNode.java

示例3: setUp

import com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory; //導入依賴的package包/類
public void setUp() {
    eventType = SupportEventTypeFactory.createBeanType(SupportBean.class);

    PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(0, eventType, new String[]{"theString", "intPrimitive"}, false, null);
    propertyMapEventIndex = (PropertyIndexedEventTable) factory.makeEventTables(null, null)[0];
    lookupStrategy = new IndexedTableLookupStrategy(eventType, new String[]{"theString", "intPrimitive"}, propertyMapEventIndex);

    propertyMapEventIndex.add(new EventBean[]{SupportEventBeanFactory.createObject(new SupportBean("a", 1))}, null);
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:10,代碼來源:TestIndexedTableLookupStrategy.java

示例4: index

import com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory; //導入依賴的package包/類
public EventTable index(List<EventBean> pollResult, boolean isActiveCache)
{
    if (!isActiveCache)
    {
        return new UnindexedEventTableList(pollResult);
    }
    PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(streamNum, eventType, propertyNames, false, null);
    EventTable table = factory.makeEventTable();
    table.add(pollResult.toArray(new EventBean[pollResult.size()]));
    return table;
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:12,代碼來源:PollResultIndexingStrategyIndex.java

示例5: setUp

import com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory; //導入依賴的package包/類
public void setUp()
{
    EventType eventTypeIndex = SupportEventTypeFactory.createBeanType(SupportBean.class);
    PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(0, eventTypeIndex, new String[] {"theString"}, false, null);
    index = (PropertyIndexedEventTable) factory.makeEventTable();

    EventType eventTypeKeyGen = SupportEventTypeFactory.createBeanType(SupportMarketDataBean.class);

    exec = new TableLookupExecNode(1, new IndexedTableLookupStrategy(eventTypeKeyGen, new String[] {"symbol"}, index));
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:11,代碼來源:TestTableLookupExecNode.java

示例6: setUp

import com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory; //導入依賴的package包/類
public void setUp()
{
    eventType = SupportEventTypeFactory.createBeanType(SupportBean.class);

    PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(0, eventType, new String[] {"theString", "intPrimitive"}, false, null);
    propertyMapEventIndex = (PropertyIndexedEventTable) factory.makeEventTable();
    lookupStrategy = new IndexedTableLookupStrategy(eventType, new String[] {"theString", "intPrimitive"}, propertyMapEventIndex);

    propertyMapEventIndex.add(new EventBean[] {SupportEventBeanFactory.createObject(new SupportBean("a", 1))});
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:11,代碼來源:TestIndexedTableLookupStrategy.java

示例7: setUp

import com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory; //導入依賴的package包/類
public void setUp()
{
    types = new EventType[] { SupportEventTypeFactory.createBeanType(SupportBean.class) };

    PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(1, types[0], new String[] {"intBoxed"}, false, null);
    propertyMapEventIndex = (PropertyIndexedEventTable) factory.makeEventTable();
}
 
開發者ID:mobile-event-processing,項目名稱:Asper,代碼行數:8,代碼來源:TestIndexedTableLookupPlan.java

示例8: setUp

import com.espertech.esper.epl.join.table.PropertyIndexedEventTableFactory; //導入依賴的package包/類
public void setUp() {
    types = new EventType[]{SupportEventTypeFactory.createBeanType(SupportBean.class)};

    PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(1, types[0], new String[]{"intBoxed"}, false, null);
    propertyMapEventIndex = (PropertyIndexedEventTable) factory.makeEventTables(null, null)[0];
}
 
開發者ID:espertechinc,項目名稱:esper,代碼行數:7,代碼來源:TestIndexedTableLookupPlan.java


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