Class AggregationFillRules
java.lang.Object
com.inductiveautomation.historian.gateway.api.query.util.AggregationFillRules
Backend-agnostic shape decisions for historian aggregate queries: a string or boolean column is
always stepped; the shape between samples comes from the query, else the tag, else the data type.
Backend column-type bindings are passed in as primitives; this class never imports backend types.
Stateless and thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InterpolationresolveShape(@Nullable InterpolationMode tagHint, Interpolation interpolation, boolean steppedOnly, Supplier<Interpolation> byType) The shape a signal takes between its samples:Interpolation.SLOPEDorInterpolation.STEPPED, neverAUTO.
-
Method Details
-
resolveShape
public static Interpolation resolveShape(@Nullable InterpolationMode tagHint, Interpolation interpolation, boolean steppedOnly, Supplier<Interpolation> byType) The shape a signal takes between its samples:Interpolation.SLOPEDorInterpolation.STEPPED, neverAUTO.A string or boolean column is always stepped; a forced
SLOPED/STEPPEDwins next;AUTOandNONEread the tag's hint (Discretestepped,Analog*sloped);Autoor no hint defers tobyType.- Parameters:
tagHint- the interpolation mode declared on the tag, ornull.interpolation- the query's interpolation.steppedOnly-trueif the underlying column carries string or boolean values.byType- the shape for the tag's data type, when neither the query nor the tag decides.- Returns:
- the resolved shape.
-