Beispiel #1
0
        public AggregationRow GetAggregationRow(
            EventBean[] eventsPerStream,
            bool isNewData,
            ExprEvaluatorContext context)
        {
            ObjectArrayBackedEventBean row = LockTableReadAndGet(context);
            if (row == null) {
                return null;
            }

            return ExprTableEvalStrategyUtil.GetRow(row);
        }
        public AggregationRow GetAggregationRow(
            EventBean[] eventsPerStream,
            bool isNewData,
            ExprEvaluatorContext context)
        {
            var row = GetRow(eventsPerStream, isNewData, context);
            if (row == null) {
                return null;
            }

            return ExprTableEvalStrategyUtil.GetRow(row);
        }
Beispiel #3
0
        public override ICollection<EventBean> EvaluateGetROCollectionEvents(
            EventBean[] eventsPerStream,
            bool isNewData,
            ExprEvaluatorContext context)
        {
            ObjectArrayBackedEventBean row = LockTableReadAndGet(context);
            if (row == null) {
                return null;
            }

            AggregationRow aggs = ExprTableEvalStrategyUtil.GetRow(row);
            return aggs.GetCollectionOfEvents(Factory.AggColumnNum, eventsPerStream, isNewData, context);
        }
Beispiel #4
0
        public override object Evaluate(
            EventBean[] eventsPerStream,
            bool isNewData,
            ExprEvaluatorContext exprEvaluatorContext)
        {
            ObjectArrayBackedEventBean row = LockTableReadAndGet(exprEvaluatorContext);
            if (row == null) {
                return null;
            }

            AggregationRow aggs = ExprTableEvalStrategyUtil.GetRow(row);
            return aggs.GetValue(Factory.AggColumnNum, eventsPerStream, isNewData, exprEvaluatorContext);
        }
        public override object[] EvaluateTypableSingle(
            EventBean[] eventsPerStream,
            bool isNewData,
            ExprEvaluatorContext context)
        {
            ObjectArrayBackedEventBean @event = LockTableReadAndGet(context);
            if (@event == null) {
                return null;
            }

            AggregationRow row = ExprTableEvalStrategyUtil.GetRow(@event);
            IDictionary<string, TableMetadataColumn> items = Factory.Table.MetaData.Columns;
            return ExprTableEvalStrategyUtil.EvalTypable(@event, row, items, eventsPerStream, isNewData, context);
        }
        public override ICollection<object> EvaluateGetROCollectionScalar(
            EventBean[] eventsPerStream,
            bool isNewData,
            ExprEvaluatorContext context)
        {
            var row = LockTableReadAndGet(context);
            if (row == null) {
                return null;
            }

            var aggs = ExprTableEvalStrategyUtil.GetRow(row);
            return Factory.AggregationMethod.GetValueCollectionScalar(
                Factory.AggColumnNum,
                aggs,
                eventsPerStream,
                isNewData,
                context);
        }
        public override object[] EvaluateTypableSingle(
            EventBean[] eventsPerStream,
            bool isNewData,
            ExprEvaluatorContext context)
        {
            var row = GetRow(eventsPerStream, isNewData, context);
            if (row == null) {
                return null;
            }

            return ExprTableEvalStrategyUtil.EvalTypable(
                row,
                ExprTableEvalStrategyUtil.GetRow(row),
                Factory.Table.MetaData.Columns,
                eventsPerStream,
                isNewData,
                context);
        }
        public override object Evaluate(
            EventBean[] eventsPerStream,
            bool isNewData,
            ExprEvaluatorContext context)
        {
            ObjectArrayBackedEventBean @event = LockTableReadAndGet(context);
            if (@event == null) {
                return null;
            }

            AggregationRow row = ExprTableEvalStrategyUtil.GetRow(@event);
            return ExprTableEvalStrategyUtil.EvalMap(
                @event,
                row,
                Factory.Table.MetaData.Columns,
                eventsPerStream,
                isNewData,
                context);
        }