Class InterpolateLinearFlux

All Implemented Interfaces:
Expression, HasImports

public class InterpolateLinearFlux extends AbstractParametrizedFlux
Inserts rows at regular intervals using linear interpolation to determine values for inserted rows.

Example

         Flux flux = Flux
                 .from("telegraf")
                 .interpolateLinear()
                 .withEvery(5L, ChronoUnit.MINUTES);
 
  • Constructor Details

    • InterpolateLinearFlux

      public InterpolateLinearFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      public InterpolateLinearFlux withEvery(long duration, ChronoUnit unit)
      Parameters:
      duration - Time duration to use when computing the interpolation
      unit - The unit of the duration
      Returns:
      this
    • withEvery

      @Nonnull public InterpolateLinearFlux withEvery(@Nonnull String every)
      Parameters:
      every - Time duration to use when computing the interpolation
      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