Exemplo n.º 1
0
 public void Init()
 {
     Factory = new PropertyCompositeEventTableFactory(
         StreamNum,
         OptionalKeyedProps,
         OptKeyCoercedTypes,
         HashGetter,
         RangeProps,
         OptRangeCoercedTypes,
         RangeGetters);
 }
Exemplo n.º 2
0
        public EventTable[] Index(IList <EventBean> pollResult, bool isActiveCache, StatementContext statementContext)
        {
            if (!isActiveCache)
            {
                return(new EventTable[] { new UnindexedEventTableList(pollResult, _streamNum) });
            }
            var factory = new PropertyCompositeEventTableFactory(_streamNum, _eventType, _indexPropertiesJoin, _keyCoercionTypes, _rangePropertiesJoin, _rangeCoercionTypes);

            EventTable[] tables = factory.MakeEventTables(new EventTableFactoryTableIdentStmt(statementContext));
            foreach (EventTable table in tables)
            {
                table.Add(pollResult.ToArray());
            }
            return(tables);
        }