Package org.apache.sedona.core.enums
Enum Class SpatialJoinOptimizationMode
java.lang.Object
java.lang.Enum<SpatialJoinOptimizationMode>
org.apache.sedona.core.enums.SpatialJoinOptimizationMode
- All Implemented Interfaces:
Serializable,Comparable<SpatialJoinOptimizationMode>,java.lang.constant.Constable
-
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 TypeMethodDescriptionstatic SpatialJoinOptimizationModestatic SpatialJoinOptimizationModeReturns the enum constant of this class with the specified name.static SpatialJoinOptimizationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Don't optimize spatial joins, just leave them as they are (cartesian join or broadcast nested loop join). -
ALL
Optimize all spatial joins, even though the join is an equi-join. For example, for a range join like this:SELECT * FROM A, B WHERE A.x = B.x AND ST_Contains(A.geom, B.geom)The join will still be optimized to a spatial range join.
-
NONEQUI
Optimize spatial joins that are not equi-join, this is the default mode.For example, for a range join like this:
SELECT * FROM A, B WHERE A.x = B.x AND ST_Contains(A.geom, B.geom)It won't be optimized as a spatial join, since it is an equi-join (with equi-condition:
A.x = B.x), and could be executed by a sort-merge join or hash join.
-
-
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
-
getSpatialJoinOptimizationMode
-