Class DoubleValueOrParameter

java.lang.Object
com.apple.foundationdb.record.spatial.common.DoubleValueOrParameter
All Implemented Interfaces:
PlanHashable

@API(EXPERIMENTAL) public abstract class DoubleValueOrParameter extends Object implements PlanHashable
A X / Y coordinate value expressed as a constant value or the name of a parameter.
  • Constructor Details

    • DoubleValueOrParameter

      public DoubleValueOrParameter()
  • Method Details

    • getValue

      public abstract Double getValue(@Nonnull EvaluationContext context)
      Get the current value from the query bindings.
      Parameters:
      context - the query context
      Returns:
      a double value or null.
    • value

      @Nonnull public static DoubleValueOrParameter value(double value)
      Get a coordinate for a constant value.
      Parameters:
      value - the coordinate value
      Returns:
      a new coordinate using the given value
    • parameter

      @Nonnull public static DoubleValueOrParameter parameter(@Nonnull String parameter)
      Get a coordinate for a parameterized value.
      Parameters:
      parameter - the parameter name
      Returns:
      a new coordinate using the given parameter