Class MeanFlux

All Implemented Interfaces:
Expression, HasImports

public final class MeanFlux extends AbstractParametrizedFlux
Returns the mean of the within the results. See SPEC.

Options

  • column - The column to use to compute the mean [string]. Default to _value.

Example

 Flux flux = Flux
     .from("telegraf")
     .range(-12L, ChronoUnit.HOURS)
     .window(10L, ChronoUnit.MINUTES)
     .mean();
 
Author:
Jakub Bednar (bednar@github) (25/06/2018 09:55)
  • Constructor Details

    • MeanFlux

      public MeanFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      @Nonnull public MeanFlux withColumn(@Nonnull String column)
      Parameters:
      column - The column to use to compute the mean.
      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