Class IntegralFlux

All Implemented Interfaces:
Expression, HasImports

public final class IntegralFlux extends AbstractParametrizedFlux
For each aggregate column, it outputs the area under the curve of non null records. The curve is defined as function where the domain is the record times and the range is the record values. See SPEC.

Options

  • unit - Time duration to use when computing the integral [duration]

Example

 Flux flux = Flux
     .from("telegraf")
     .integral(1L, ChronoUnit.MINUTES);
 
Author:
Jakub Bednar (bednar@github) (03/07/2018 12:33)
  • Constructor Details

    • IntegralFlux

      public IntegralFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

      @Nonnull protected String operatorName()
      Specified by:
      operatorName in class AbstractParametrizedFlux
      Returns:
      name of function
    • withUnit

      @Nonnull public IntegralFlux withUnit(@Nonnull Long duration, @Nonnull ChronoUnit unit)
      Parameters:
      duration - Time duration to use when computing the integral
      unit - a ChronoUnit determining how to interpret the duration parameter
      Returns:
      this
    • withUnit

      @Nonnull public IntegralFlux withUnit(@Nonnull String unit)
      Parameters:
      unit - Time duration to use when computing the integral
      Returns:
      this
    • collectImports

      public void collectImports(@Nonnull Set<String> collectedImports)
      Description copied from class: Flux
      Collects all imports of the flux.
      Overrides:
      collectImports in class Flux
      Parameters:
      collectedImports - a set to be filled by the used imports