本文整理匯總了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;
}
示例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));
}
示例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);
}
示例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;
}
示例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));
}
示例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))});
}
示例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();
}
示例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];
}