public IData ProcessCalculate(StateBin state) { throw new NotSupportedException ("Aggregation with case expression not supported"); /* foreach (WhenItem whenItem in whenItems) { if (whenItem.Check.IsAggregated() || whenItem.Result.IsAggregated()) return true; } if (elseResult != null && elseResult.IsAggregated()) return true; return false; */ }
public void Process(StateBin state, GqlQueryState gqlQueryState) { throw new NotSupportedException ("Aggregation with case expression not supported"); //GetResultExpression(gqlQueryState).Aggregate(state, gqlQueryState); }
public void Process(StateBin state, GqlQueryState gqlQueryState) { throw new Exception (string.Format ("Aggregation not supported on expression {0}", this.GetType ().ToString ())); }
public IData ProcessCalculate(StateBin state) { throw new Exception (string.Format ("Aggregation not supported on expression {0}", this.GetType ().ToString ())); }
public bool GetNextRecord() { bool moredata = provider.GetNextRecord(); record.OriginalColumns = record.Columns; for (int col = 0; col < outputColumns.Length; col++) { IExpression expr = outputColumns[col]; if (expr.HasState()) { if (data[col] == null) data[col] = new StateBin(); expr.Process(data[col], gqlQueryState); record.Columns[col] = expr.ProcessCalculate(data[col]); } else { record.Columns[col] = expr.EvaluateAsData(gqlQueryState); } } return moredata; }