Class FunctionsParameters

java.lang.Object
com.influxdb.query.dsl.functions.properties.FunctionsParameters

public final class FunctionsParameters extends Object
The function properties. Support named-property, property with values.
Author:
Jakub Bednar (bednar@github) (28/06/2018 05:32)
  • Method Details

    • escapeDoubleQuotes

      public static String escapeDoubleQuotes(String val)
    • of

      @Nonnull public static FunctionsParameters of()
    • serializeValue

      @Nullable public static String serializeValue(@Nonnull Object value, boolean escapeStrings)
      Serialize value for Flux property.
      Parameters:
      value - to serialize
      Returns:
      serialized value
    • putPropertyNamed

      public void putPropertyNamed(@Nonnull String fluxName, @Nonnull String namedProperty)
      Parameters:
      fluxName - name in Flux query
      namedProperty - name in named properties
      See Also:
    • putFunctionNamed

      public void putFunctionNamed(@Nonnull String functionName, @Nonnull String namedProperty)
      Parameters:
      functionName - name in Flux query
      namedProperty - name in named properties
      See Also:
    • putPropertyValue

      public void putPropertyValue(@Nonnull String fluxName, @Nullable Object value)
      Parameters:
      fluxName - name in Flux query
      value - value of property. If null than ignored.
      See Also:
    • putFunctionValue

      public void putFunctionValue(@Nonnull String functionName, @Nullable Object function)
      Parameters:
      functionName - name in Flux query
      function - defined function
      See Also:
    • putPropertyValue

      public void putPropertyValue(@Nonnull String fluxName, @Nullable Long amount, @Nullable ChronoUnit unit)
      Parameters:
      fluxName - name of property in Flux query
      amount - the amount of the duration, measured in terms of the unit, positive or negative
      unit - the unit that the duration is measured in, must have an exact duration. If null than ignored.
      See Also:
    • putPropertyValueString

      public void putPropertyValueString(@Nonnull String fluxName, @Nullable String value)
      Parameters:
      fluxName - name of property in Flux query
      value - value of property. If null than ignored.
      See Also:
    • keys

      @Nonnull public Collection<String> keys()
    • get

      @Nullable public String get(@Nonnull String key, @Nonnull Map<String,Object> namedProperties)
    • getDelimiter

      @Nonnull public String getDelimiter(@Nonnull String key)