Package io.trino.util

Class SpatialJoinUtils

java.lang.Object
io.trino.util.SpatialJoinUtils

public final class SpatialJoinUtils extends Object
  • Field Details

  • Method Details

    • extractSupportedSpatialFunctions

      public static List<Call> 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<Comparison> 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.