Ejemplo n.º 1
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            var other = (ExprAggMultiFunctionLinearAccessNodeFactoryAccess)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateEventType(_containedEventType, other.ContainedEventType);
        }
Ejemplo n.º 2
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            ExprFirstEverNodeFactory that = (ExprFirstEverNodeFactory)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateAggregationInputType(_childType, that._childType);
            AggregationMethodFactoryUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
        }
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            var other = (ExprAggMultiFunctionSortedMinMaxByNodeFactory)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateEventType(_containedEventType, other.ContainedEventType);
            AggregationMethodFactoryUtil.ValidateAggFuncName(_parent.AggregationFunctionName, other.Parent.AggregationFunctionName);
        }
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            var that = (ExprPlugInAggMultiFunctionNodeFactory)intoTableAgg;

            if (!GetAggregationStateKey(false).Equals(that.GetAggregationStateKey(false)))
            {
                throw new ExprValidationException("Mismatched state key");
            }
        }
Ejemplo n.º 5
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            ExprRateAggNodeFactory that = (ExprRateAggNodeFactory)intoTableAgg;

            if (_intervalMSec != that._intervalMSec)
            {
                throw new ExprValidationException("The size is " +
                                                  _intervalMSec +
                                                  " and provided is " +
                                                  that._intervalMSec);
            }
            AggregationMethodFactoryUtil.ValidateAggregationUnbound(!_isEver, !that._isEver);
        }
Ejemplo n.º 6
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            ExprNthAggNodeFactory that = (ExprNthAggNodeFactory)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateAggregationInputType(_childType, that._childType);
            if (_size != that._size)
            {
                throw new ExprValidationException("The size is " +
                                                  _size +
                                                  " and provided is " +
                                                  that._size);
            }
        }
Ejemplo n.º 7
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            ExprCountEverNodeFactory that = (ExprCountEverNodeFactory)intoTableAgg;

            if (that._ignoreNulls != _ignoreNulls)
            {
                throw new ExprValidationException("The aggregation declares " +
                                                  (_ignoreNulls ? "ignore-nulls" : "no-ignore-nulls") +
                                                  " and provided is " +
                                                  (that._ignoreNulls ? "ignore-nulls" : "no-ignore-nulls"));
            }
            AggregationMethodFactoryUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
        }
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            var that = (ExprAggMultiFunctionLinearAccessNodeFactoryMethod)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateStreamNumZero(that._streamNum);
            if (_collectionEventType != null)
            {
                AggregationMethodFactoryUtil.ValidateEventType(_collectionEventType, that._collectionEventType);
            }
            else
            {
                AggregationMethodFactoryUtil.ValidateAggregationInputType(_resultType, that._resultType);
            }
        }
Ejemplo n.º 9
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            var that = (ExprMinMaxAggrNodeFactory)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateAggregationInputType(_type, that._type);
            AggregationMethodFactoryUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
            if (_parent.MinMaxTypeEnum != that._parent.MinMaxTypeEnum)
            {
                throw new ExprValidationException(
                          string.Format(
                              "The aggregation declares {0} and provided is {1}",
                              this._parent.MinMaxTypeEnum.GetExpressionText(),
                              that._parent.MinMaxTypeEnum.GetExpressionText()));
            }
            AggregationMethodFactoryUtil.ValidateAggregationUnbound(_hasDataWindows, that._hasDataWindows);
        }
Ejemplo n.º 10
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            ExprCountNodeFactory that = (ExprCountNodeFactory)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
            if (_parent.IsDistinct)
            {
                AggregationMethodFactoryUtil.ValidateAggregationInputType(_countedValueType, that._countedValueType);
            }
            if (_ignoreNulls != that._ignoreNulls)
            {
                throw new ExprValidationException("The aggregation declares" +
                                                  (_ignoreNulls ? "" : " no") +
                                                  " ignore nulls and provided is" +
                                                  (that._ignoreNulls ? "" : " no") +
                                                  " ignore nulls");
            }
        }
Ejemplo n.º 11
0
 public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
 {
     AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
 }