Class TruncateTimeColumnFlux

All Implemented Interfaces:
Expression, HasImports

public final class TruncateTimeColumnFlux extends AbstractParametrizedFlux
Truncates all input time values in the _time to a specified unit..

Options

  • unit - Unit of time to truncate to. [unit].

Example

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

    • TruncateTimeColumnFlux

      public TruncateTimeColumnFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

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

      @Nonnull public TruncateTimeColumnFlux withUnit(@Nonnull ChronoUnit unit)
      Parameters:
      unit - Unit of time to truncate to. Has to be defined.
      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