Skip to main content

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 ObjectValueTypeEnumCkRollupFunction
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

NameValueDescription
Avg0Arithmetic mean. Stored as sum + count; the average is computed on read.
Min1Minimum value in the bucket.
Max2Maximum value in the bucket.
Sum3Sum of values in the bucket.
Count4Number of non-null values in the bucket.