예제 #1
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);
        }
예제 #2
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);
            }
        }
        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);
            }
        }
예제 #4
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);
        }
예제 #5
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");
            }
        }