Skip to main content

RollupQueryFunction

Namespace: Meshmakers.Octo.Runtime.Contracts.StreamData

Which stored rollup aggregation answers a query aggregation function. Used to route a query to a rollup rung (SeriesResolutionRequest.ForQueryFunction(OctoObjectId, DateTime, DateTime, Int32, AggregationFunction, String)) without the caller knowing the storage layout.

public static class RollupQueryFunction

Inheritance Object → RollupQueryFunction

Remarks:

Every function needs the same function stored, except AggregationFunction.Integral: a rollup answers it from the integral half of a CkRollupFunction.TimeWeightedAvg pair (Σ value × Δt per bucket), so Integral is served by exactly the rollups that serve TimeWeightedAverage. A sample CkRollupFunction.Avg or CkRollupFunction.Sum has no time weighting and never answers Integral.

Methods​

RequiredStoredFunction(AggregationFunction)​

The rollup aggregation a rung must store for queryFunction.

public static CkRollupFunction RequiredStoredFunction(AggregationFunction queryFunction)

Parameters​

queryFunction AggregationFunction

Returns​

CkRollupFunction

Exceptions​

ArgumentOutOfRangeException
The value is not a defined AggregationFunction.