CkRollupFunction
Namespace: Meshmakers.Octo.Runtime.Contracts.StreamData
Aggregation function applied by a CkRollupAggregation. Mirrors the values of the
CkRollupFunction CK enum from the StreamData CK model so lifecycle / orchestrator code
does not have to depend on the generated CK enum.
public enum CkRollupFunction
Inheritance Object → ValueType → Enum → CkRollupFunction
Implements IComparable, ISpanFormattable, IFormattable, IConvertible
Remarks:
CkRollupFunction.Avg is materialised at storage time as two columns ({name}_sum and
{name}_count) so chained re-aggregation (rollup-of-a-rollup) stays numerically correct.
The single-column average is computed on read as sum / NULLIF(count, 0).
Fields
| Name | Value | Description |
|---|---|---|
| Avg | 0 | Arithmetic mean. Stored as sum + count; the average is computed on read. |
| Min | 1 | Minimum value in the bucket. |
| Max | 2 | Maximum value in the bucket. |
| Sum | 3 | Sum of values in the bucket. |
| Count | 4 | Number of non-null values in the bucket. |