Class DuplicateFlux

All Implemented Interfaces:
Expression, HasImports

public final class DuplicateFlux extends AbstractParametrizedFlux
Duplicate will duplicate a specified column in a table. See SPEC.

Options

  • column - The column to duplicate. [string]
  • as - The name that should be assigned to the duplicate column. [string]

Example

 Flux flux = Flux
     .from("telegraf")
     .duplicate("host", "server");
 
Author:
Jakub Bednar (bednar@github) (09/10/2018 13:13)
  • Constructor Details

    • DuplicateFlux

      public DuplicateFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      @Nonnull public DuplicateFlux withColumn(@Nonnull String column)
      Parameters:
      column - the column to duplicate
      Returns:
      this
    • withAs

      @Nonnull public DuplicateFlux withAs(@Nonnull String as)
      Parameters:
      as - the name that should be assigned to the duplicate column
      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