public ExprAggMultiFunctionCountMinSketchNode( bool distinct, CountMinSketchAggType aggType) : base(distinct) { this.aggType = aggType; }
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)) });
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"); }
/// <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; }