public void SetOption(HqlToken token) { if (_options == null) { _options = new HqlCalcOptions(); } if (token.WordType == HqlWordType.INT) { _options.DecimalPrintPlaces = token.ParsedAsInt; } else if (token.WordType == HqlWordType.LITERAL_STRING) { _options.DecimalPrintFormat = (string)token.Data; } else { throw new Exception("Unknown option to Function"); } }
public HqlCalc(HqlCalcOptions options) { _options = options; }
public HqlCount(HqlCalcOptions options) : base(options) { count = 0; }
public HqlStdev(HqlCalcOptions options) : base(options) { Q = null; M = null; //count = 0; // unnecessary }
public HqlAvg(HqlCalcOptions options) : base(options) { sum = null; }
public HqlCalcDec(HqlCalcOptions options) : base(options) { }
public HqlCalcInt(HqlCalcOptions options) : base(options) { }
public HqlMin(HqlCalcOptions options) : base(options) { min = null; }
public HqlMax(HqlCalcOptions options) : base(options) { max = null; }