Class CountFlux

All Implemented Interfaces:
Expression, HasImports

public final class CountFlux extends AbstractParametrizedFlux
Counts the number of results. See SPEC.

Options

  • column - The column to aggregate [string]. Default to _value.

Example

 Flux flux = Flux
      .from("telegraf")
      .count();
 
Author:
Jakub Bednar (bednar@github) (22/06/2018 11:06)
  • Constructor Details

    • CountFlux

      public CountFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      @Nonnull public CountFlux withColumn(@Nonnull String column)
      Parameters:
      column - The column to aggregate.
      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