Class AggregationFillRules

java.lang.Object
com.inductiveautomation.historian.gateway.api.query.util.AggregationFillRules

public final class AggregationFillRules extends Object
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 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.SLOPED or Interpolation.STEPPED, never AUTO.

      A string or boolean column is always stepped; a forced SLOPED / STEPPED wins next; AUTO and NONE read the tag's hint (Discrete stepped, Analog* sloped); Auto or no hint defers to byType.

      Parameters:
      tagHint - the interpolation mode declared on the tag, or null.
      interpolation - the query's interpolation.
      steppedOnly - true if 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.