Class DistinctFlux

All Implemented Interfaces:
Expression, HasImports

public final class DistinctFlux extends AbstractParametrizedFlux
Distinct produces the unique values for a given column. See SPEC.

Options

  • column - The column on which to track unique values [string]

Example

 Flux flux = Flux
     .from("telegraf")
     .groupBy("_measurement")
     .distinct("_measurement");
 
Author:
Jakub Bednar (bednar@github) (17/07/2018 12:08)
  • Constructor Details

    • DistinctFlux

      public DistinctFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      @Nonnull public DistinctFlux withColumn(@Nonnull String column)
      Parameters:
      column - The column on which to track unique values.
      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