Beispiel #1
0
        public override void SetUp()
        {
            base.SetUp();

            ValidatedNodeToTest = MakeNode(5, typeof(int), false);
            _avgNodeDistinct    = MakeNode(6, typeof(int), true);
        }
Beispiel #2
0
 public AggregationMethodFactoryAvg(ExprAvgNode parent, Type childType, MathContext optionalMathContext)
 {
     Parent              = parent;
     ChildType           = childType;
     ResultType          = GetAvgAggregatorType(childType);
     OptionalMathContext = optionalMathContext;
 }
Beispiel #3
0
        private static ExprAvgNode MakeNode(Object value, Type type, bool isDistinct)
        {
            var avgNode = new ExprAvgNode(isDistinct);

            avgNode.AddChildNode(new SupportExprNode(value, type));
            SupportExprNodeFactory.Validate3Stream(avgNode);
            return(avgNode);
        }
Beispiel #4
0
 public AggregationMethodFactory MakeAvg(
     StatementExtensionSvcContext statementExtensionSvcContext,
     ExprAvgNode exprAvgNode,
     Type childType,
     MathContext optionalMathContext)
 {
     return(new AggregationMethodFactoryAvg(exprAvgNode, childType, optionalMathContext));
 }
 public AggregationForgeFactoryAvg(ExprAvgNode parent, Type childType, DataInputOutputSerdeForge distinctSerde, MathContext optionalMathContext)
 {
     this.parent              = parent;
     this.childType           = childType;
     this.distinctSerde       = distinctSerde;
     this.resultType          = GetAvgAggregatorType(childType);
     this.optionalMathContext = optionalMathContext;
 }
Beispiel #6
0
 public AggregationFactoryMethodAvg(
     ExprAvgNode parent,
     Type childType,
     MathContext optionalMathContext)
 {
     this.parent = parent;
     this.childType = childType;
     resultType = GetAvgAggregatorType(childType);
     this.optionalMathContext = optionalMathContext;
 }
Beispiel #7
0
 public void SetUp()
 {
     ValidatedNodeToTest = MakeNode(5, typeof(int), false);
     _avgNodeDistinct    = MakeNode(6, typeof(int), true);
 }