Example #1
0
        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;
            */
        }
Example #2
0
        public void Process(StateBin state, GqlQueryState gqlQueryState)
        {
            throw new NotSupportedException ("Aggregation with case expression not supported");

            //GetResultExpression(gqlQueryState).Aggregate(state, gqlQueryState);
        }
Example #3
0
 public void Process(StateBin state, GqlQueryState gqlQueryState)
 {
     throw new Exception (string.Format ("Aggregation not supported on expression {0}", this.GetType ().ToString ()));
 }
Example #4
0
 public IData ProcessCalculate(StateBin state)
 {
     throw new Exception (string.Format ("Aggregation not supported on expression {0}", this.GetType ().ToString ()));
 }
Example #5
0
        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;
        }