Example #1
0
        /// <inheritdoc/>
        public override AnalysisValueIntermediateResult ExecuteStep()
        {
            var argument = this.Arguments[0] as AnalysisValueIntermediateResult;
            AnalysisValueIntermediateResult result = argument.Complete ? argument : argument.ExecuteStep();

            return(result.Complete
                ? this.Func.ResultForArgumentRowVariableContext(result, this.RowContext, this.ValueContext)
                : new AnalysisValueIntermediateResultWithFunction(this.Func, result, this.RowContext, this.ValueContext));
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AnalysisValueIntermediateResultWithFunction"/> class.
 /// </summary>
 /// <param name="function">Function</param>
 /// <param name="argument">Argument</param>
 /// <param name="rowContext">Row context</param>
 /// <param name="valueContext">Value context</param>
 public AnalysisValueIntermediateResultWithFunction(AnalysisFunctionFunc function, AnalysisValueIntermediateResult argument, AnalysisProcessingQueryResultRowExecutionContext rowContext, AnalysisProcessingValueExecutionContext valueContext)
     : base(null, new System.Collections.Generic.List <object> {
     argument
 }, rowContext, valueContext)
 {
     this.Func = function;
 }