public void SetUp() { _types = new EventType[] { SupportEventTypeFactory.CreateBeanType(typeof(SupportBean)) }; var factory = new PropertyIndexedEventTableFactory(1, _types[0], new String[] { "IntBoxed" }, false, null); _propertyMapEventIndex = (PropertyIndexedEventTable)factory.MakeEventTables(null)[0]; }
public void SetUp() { var eventTypeIndex = SupportEventTypeFactory.CreateBeanType(typeof(SupportBean)); var factory = new PropertyIndexedEventTableFactory(0, eventTypeIndex, new String[] { "TheString" }, false, null); _index = (PropertyIndexedEventTable)factory.MakeEventTables(null)[0]; var eventTypeKeyGen = SupportEventTypeFactory.CreateBeanType(typeof(SupportMarketDataBean)); _exec = new TableLookupExecNode(1, new IndexedTableLookupStrategy(eventTypeKeyGen, new String[] { "Symbol" }, _index)); }
public void SetUp() { _eventType = SupportEventTypeFactory.CreateBeanType(typeof(SupportBean)); PropertyIndexedEventTableFactory factory = new PropertyIndexedEventTableFactory(0, _eventType, new String[] { "TheString", "IntPrimitive" }, false, null); _propertyMapEventIndex = (PropertyIndexedEventTable)factory.MakeEventTables(null)[0]; _lookupStrategy = new IndexedTableLookupStrategy(_eventType, new String[] { "TheString", "IntPrimitive" }, _propertyMapEventIndex); _propertyMapEventIndex.Add(new EventBean[] { SupportEventBeanFactory.CreateObject(new SupportBean("a", 1)) }); }
public EventTable[] Index(IList <EventBean> pollResult, bool isActiveCache, StatementContext statementContext) { if (!isActiveCache) { return(new EventTable[] { new UnindexedEventTableList(pollResult, _streamNum) }); } var factory = new PropertyIndexedEventTableFactory(_streamNum, _eventType, _propertyNames, false, null); var tables = factory.MakeEventTables(new EventTableFactoryTableIdentStmt(statementContext)); foreach (var table in tables) { table.Add(pollResult.ToArray()); } return(tables); }