Enum Class BinarySpatialFunction.SpatialCrsType
java.lang.Object
java.lang.Enum<BinarySpatialFunction.SpatialCrsType>
org.elasticsearch.xpack.esql.expression.function.scalar.spatial.BinarySpatialFunction.SpatialCrsType
- All Implemented Interfaces:
Serializable,Comparable<BinarySpatialFunction.SpatialCrsType>,Constable
- Enclosing class:
BinarySpatialFunction
public static enum BinarySpatialFunction.SpatialCrsType
extends Enum<BinarySpatialFunction.SpatialCrsType>
For most spatial functions we only need to know if the CRS is geo or cartesian, not whether the type is point or shape.
This enum captures this knowledge.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfromDataType(DataType dataType) Returns the enum constant of this class with the specified name.static BinarySpatialFunction.SpatialCrsType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GEO
-
CARTESIAN
-
UNSPECIFIED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromDataType
-