Package io.prestosql.util
Class SpatialJoinUtils
- java.lang.Object
-
- io.prestosql.util.SpatialJoinUtils
-
public final class SpatialJoinUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
ST_CONTAINS
static String
ST_DISTANCE
static String
ST_INTERSECTS
static String
ST_WITHIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<ComparisonExpression>
extractSupportedSpatialComparisons(Expression filterExpression)
Returns a subset of conjuncts matching one the following shapes: - ST_Distance(...) <= ...static List<FunctionCall>
extractSupportedSpatialFunctions(Expression filterExpression)
Returns a subset of conjuncts matching one of the following shapes: - ST_Contains(...) - ST_Within(...) - ST_Intersects(...)static boolean
isSpatialJoinFilter(PlanNode left, PlanNode right, Expression filterExpression)
-
-
-
Field Detail
-
ST_CONTAINS
public static final String ST_CONTAINS
- See Also:
- Constant Field Values
-
ST_WITHIN
public static final String ST_WITHIN
- See Also:
- Constant Field Values
-
ST_INTERSECTS
public static final String ST_INTERSECTS
- See Also:
- Constant Field Values
-
ST_DISTANCE
public static final String ST_DISTANCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractSupportedSpatialFunctions
public static List<FunctionCall> extractSupportedSpatialFunctions(Expression filterExpression)
Returns a subset of conjuncts matching one of the following shapes: - ST_Contains(...) - ST_Within(...) - ST_Intersects(...)Doesn't check or guarantee anything about function arguments.
-
extractSupportedSpatialComparisons
public static List<ComparisonExpression> extractSupportedSpatialComparisons(Expression filterExpression)
Returns a subset of conjuncts matching one the following shapes: - ST_Distance(...) <= ... - ST_Distance(...) < ... - ... >= ST_Distance(...) - ... > ST_Distance(...)Doesn't check or guarantee anything about ST_Distance functions arguments or the other side of the comparison.
-
isSpatialJoinFilter
public static boolean isSpatialJoinFilter(PlanNode left, PlanNode right, Expression filterExpression)
-
-