示例#1
0
 public ExprAggMultiFunctionCountMinSketchNode(
     bool distinct,
     CountMinSketchAggType aggType)
     : base(distinct)
 {
     this.aggType = aggType;
 }
示例#2
0
 public static string GetFuncName(this CountMinSketchAggType enumValue)
 {
     return(enumValue switch {
         CountMinSketchAggType.ADD => "countMinSketchAdd",
         CountMinSketchAggType.STATE => "countMinSketch",
         _ => throw new ArgumentException("invalid value for enum value", nameof(enumValue))
     });
示例#3
0
        public static string GetFuncName(this CountMinSketchAggType enumValue)
        {
            switch (enumValue)
            {
            case CountMinSketchAggType.ADD:
                return("countMinSketchAdd");

            case CountMinSketchAggType.FREQ:
                return("countMinSketchFrequency");

            case CountMinSketchAggType.STATE:
                return("countMinSketch");

            case CountMinSketchAggType.TOPK:
                return("countMinSketchTopk");
            }

            throw new ArgumentException("invalid value for enum value", "enumValue");
        }
示例#4
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="distinct">flag indicating unique or non-unique value aggregation</param>
 /// <param name="aggType">Type of the aggregate.</param>
 public ExprAggCountMinSketchNode(bool distinct, CountMinSketchAggType aggType)
     : base(distinct)
 {
     _aggType = aggType;
 }