Class SumFlux

All Implemented Interfaces:
Expression, HasImports

public final class SumFlux extends AbstractParametrizedFlux
Sum of the results. See SPEC.

Options

  • column - The column on which to operate [string]. Default to _value.

Example

 Flux flux = Flux
     .from("telegraf")
     .sum();
 
Author:
Jakub Bednar (bednar@github) (25/06/2018 10:19)
  • Constructor Details

    • SumFlux

      public SumFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      @Nonnull public SumFlux withColumn(@Nonnull String column)
      Parameters:
      column - The column on which to operate.
      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