Class ToIntFlux

All Implemented Interfaces:
Expression, HasImports

public final class ToIntFlux extends AbstractParametrizedFlux
Convert a value to a int. See SPEC.

Example

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

    • ToIntFlux

      public ToIntFlux(@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