Class ColumnsFlux

All Implemented Interfaces:
Expression, HasImports

public final class ColumnsFlux extends AbstractParametrizedFlux
The columns() function lists the column labels of input tables. See SPEC.

Options

  • column - The name of the output column in which to store the column labels. [string]. Default is _value.

Example

 Flux flux = Flux
     .from("telegraf")
     .range(-12L, ChronoUnit.HOURS)
     .window(10L, ChronoUnit.MINUTES)
     .columns();
 
Author:
Jakub Bednar (bednar@github) (19/04/2022 09:49)
  • Constructor Details

    • ColumnsFlux

      public ColumnsFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      @Nonnull public ColumnsFlux withColumn(@Nonnull String column)
      Parameters:
      column - The name of the output column in which to store the column labels.
      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