Class ToDurationFlux

All Implemented Interfaces:
Expression, HasImports

public final class ToDurationFlux extends AbstractParametrizedFlux
Convert a value to a duration. See SPEC.

Example

 Flux flux = Flux
     .from("telegraf")
     .filter(and(measurement().equal("mem"), field().equal("used")))
     .toDuration();
 
Author:
Jakub Bednar (bednar@github) (25/06/2018 16:06)
  • Constructor Details

    • ToDurationFlux

      public ToDurationFlux(@Nonnull Flux source)
  • Method Details

    • operatorName

      @Nonnull protected String operatorName()
      Specified by:
      operatorName in class AbstractParametrizedFlux
      Returns:
      name of function
    • 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