/
krasninja
/
querycat
Обзор
Документация
Войти
/
krasninja
/
querycat
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/QueryCat.Backend.Core/Functions/IAggregateFunction.cs
31 строка
1 KB
Ivan Kozhin
Aggregate function does not use VariantValueArray
16 дек 2023, 18:23
16 дек 2023, 18:23
47858f0
Код
Авторство
О чём код?
using QueryCat.Backend.Core.Types; namespace QueryCat.Backend.Core.Functions; /// <summary> /// Aggregate function. The aggregate function is the special type of functions /// that process on rows set column instead of specific arguments. /// </summary> public interface IAggregateFunction { /// <summary> /// Initialize the context. The function is called once before values processing. /// </summary> /// <param name="type">Target data type.</param> /// <returns>Initial state.</returns> VariantValue[] GetInitialState(DataType type); /// <summary> /// Process the value. The function is called on every next row value. /// </summary> /// <param name="state">State.</param> /// <param name="callInfo">Function call info. Arguments.</param> void Invoke(VariantValue[] state, FunctionCallInfo callInfo); /// <summary> /// Get the current aggregate result. /// </summary> /// <param name="state">State.</param> /// <returns>Aggregation result.</returns> VariantValue GetResult(VariantValue[] state); }