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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.apple.foundationdb.record.PlanHashable
PlanHashable.PlanHashKind, PlanHashable.PlanHashMode -
Field Summary
Fields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DoublegetValue(EvaluationContext context) Get the current value from the query bindings.static DoubleValueOrParameterGet a coordinate for a parameterized value.static DoubleValueOrParametervalue(double value) Get a coordinate for a constant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHash, planHash
-
Constructor Details
-
DoubleValueOrParameter
public DoubleValueOrParameter()
-
-
Method Details
-
getValue
Get the current value from the query bindings.- Parameters:
context- the query context- Returns:
- a double value or
null.
-
value
Get a coordinate for a constant value.- Parameters:
value- the coordinate value- Returns:
- a new coordinate using the given value
-
parameter
Get a coordinate for a parameterized value.- Parameters:
parameter- the parameter name- Returns:
- a new coordinate using the given parameter
-