Class FillFlux

All Implemented Interfaces:
Expression, HasImports

public final class FillFlux extends AbstractParametrizedFlux
Replaces all null values in input tables with a non-null value. See SPEC.

Example

 Flux flux = Flux
     .from("telegraf")
     .fill();
 
  • Constructor Details

    • FillFlux

      public FillFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      @Nonnull public FillFlux withColumn(@Nonnull String column)
      Parameters:
      column - The column to fill. Defaults to "_value".
      Returns:
      this
    • withValue

      @Nonnull public FillFlux withValue(@Nonnull Object value)
      Parameters:
      value - The constant value to use in place of nulls. The type must match the type of the valueColumn.
      Returns:
      this
    • withUsePrevious

      @Nonnull public FillFlux withUsePrevious(@Nonnull Boolean usePrevious)
      Parameters:
      usePrevious - If set, then assign the value set in the previous non-null row. Cannot be used with value.
      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