public enum SpatialJoinOptimizationMode extends Enum<SpatialJoinOptimizationMode>
Enum Constant and Description |
---|
ALL
Optimize all spatial joins, even though the join is an equi-join.
|
NONE
Don't optimize spatial joins, just leave them as they are (cartesian join or broadcast nested loop join).
|
NONEQUI
Optimize spatial joins that are not equi-join, this is the default mode.
|
Modifier and Type | Method and Description |
---|---|
static SpatialJoinOptimizationMode |
getSpatialJoinOptimizationMode(String str) |
static SpatialJoinOptimizationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpatialJoinOptimizationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpatialJoinOptimizationMode NONE
public static final SpatialJoinOptimizationMode ALL
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.
public static final SpatialJoinOptimizationMode NONEQUI
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.
public static SpatialJoinOptimizationMode[] values()
for (SpatialJoinOptimizationMode c : SpatialJoinOptimizationMode.values()) System.out.println(c);
public static SpatialJoinOptimizationMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static SpatialJoinOptimizationMode getSpatialJoinOptimizationMode(String str)
Copyright © 2023 The Apache Software Foundation. All rights reserved.