Class ExpressionFlux

java.lang.Object
com.influxdb.query.dsl.Flux
com.influxdb.query.dsl.functions.ExpressionFlux
All Implemented Interfaces:
Expression, HasImports

public final class ExpressionFlux extends Flux
The custom Flux expression.

Example

     Flux.from("telegraf")
          .expression("map(fn: (r) => r._value * r._value)")
          .expression("sum()")
 
Author:
Jakub Bednar (bednar@github) (27/06/2018 11:21)
  • Constructor Details

    • ExpressionFlux

      public ExpressionFlux(@Nonnull Flux source, @Nonnull String expression)
  • Method Details

    • appendActual

      public void appendActual(@Nonnull Map<String,Object> parameters, @Nonnull StringBuilder builder)
      Description copied from class: Flux
      Append actual Flux function to Flux query.
      Parameters:
      parameters - named parameters for Flux query
      builder - Flux query chaing
    • 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