示例#1
0
 private void AddToJoin(
     ISet<MultiKeyArrayOfKeys<EventBean>> newEvents,
     ISet<MultiKeyArrayOfKeys<EventBean>> oldEvents)
 {
     EventBeanUtility.AddToCollection(newEvents, eventsNewJoin);
     EventBeanUtility.AddToCollection(oldEvents, eventsOldJoin);
 }
示例#2
0
 private void AddToView(
     EventBean[] newData,
     EventBean[] oldData)
 {
     EventBeanUtility.AddToCollection(newData, eventsNewView);
     EventBeanUtility.AddToCollection(oldData, eventsOldView);
 }
        private void Apply(UniformPair<EventBean[]> pair)
        {
            if (pair == null) {
                return;
            }

            EventBeanUtility.AddToCollection(pair.First, eventsNew);
            EventBeanUtility.AddToCollection(pair.Second, eventsOld);
        }
        public void ProcessJoin(ISet <MultiKey <EventBean> > newEvents, ISet <MultiKey <EventBean> > oldEvents, bool isGenerateSynthetic)
        {
            if (processor.Prototype.IsSelectRStream)
            {
                EventBean[] eventsX = processor.GetSelectListEvents(false, isGenerateSynthetic, true);
                EventBeanUtility.AddToCollection(eventsX, eventsOld);
            }

            ResultSetProcessorUtil.ApplyAggJoinResult(processor.AggregationService, processor._exprEvaluatorContext, newEvents, oldEvents);

            EventBean[] events = processor.GetSelectListEvents(true, isGenerateSynthetic, true);
            EventBeanUtility.AddToCollection(events, eventsNew);
        }
        public void ProcessView(EventBean[] newData, EventBean[] oldData, bool isGenerateSynthetic)
        {
            if (processor.Prototype.IsSelectRStream)
            {
                EventBean[] eventsX = processor.GetSelectListEvents(false, isGenerateSynthetic, false);
                EventBeanUtility.AddToCollection(eventsX, eventsOld);
            }

            EventBean[] eventsPerStream = new EventBean[1];
            ResultSetProcessorUtil.ApplyAggViewResult(processor.AggregationService, processor._exprEvaluatorContext, newData, oldData, eventsPerStream);

            EventBean[] events = processor.GetSelectListEvents(true, isGenerateSynthetic, false);
            EventBeanUtility.AddToCollection(events, eventsNew);
        }