Package

org.apache.spark.sql.sedona_sql

expressions

Permalink

package expressions

Visibility
  1. Public
  2. All

Type Members

  1. case class ST_AddPoint(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  2. case class ST_Area(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return the area measurement of a Geometry.

  3. case class ST_AsGeoJSON(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  4. case class ST_AsText(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  5. case class ST_Azimuth(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  6. case class ST_Boundary(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  7. case class ST_Buffer(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Returns a geometry/geography that represents all points whose distance from this Geometry/geography is less than or equal to distance.

  8. case class ST_Centroid(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return mathematical centroid of a geometry.

  9. case class ST_Contains(inputExpressions: Seq[Expression]) extends ST_Predicate with CodegenFallback with Product with Serializable

    Permalink

    Test if leftGeometry full contains rightGeometry

  10. case class ST_ConvexHull(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return the convex hull of a Geometry.

  11. case class ST_Crosses(inputExpressions: Seq[Expression]) extends ST_Predicate with CodegenFallback with Product with Serializable

    Permalink

    Test if leftGeometry crosses rightGeometry

  12. case class ST_Distance(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return the distance between two geometries.

    Return the distance between two geometries.

    inputExpressions

    This function takes two geometries and calculates the distance between two objects.

  13. case class ST_Dump(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  14. case class ST_DumpPoints(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  15. case class ST_EndPoint(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  16. case class ST_Envelope(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return the bounding rectangle for a Geometry

  17. class ST_Envelope_Aggr extends expressions.Aggregator[Geometry, Geometry, Geometry] with TraitSTAggregateExec

    Permalink

    Return the envelope boundary of the entire column

  18. case class ST_Equals(inputExpressions: Seq[Expression]) extends ST_Predicate with CodegenFallback with Product with Serializable

    Permalink

    Test if leftGeometry is equal to rightGeometry

  19. case class ST_ExteriorRing(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  20. case class ST_FlipCoordinates(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Returns a version of the given geometry with X and Y axis flipped.

    Returns a version of the given geometry with X and Y axis flipped.

    inputExpressions

    Geometry

  21. case class ST_GeomFromGeoJSON(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a Geometry from a GeoJSON string

    Return a Geometry from a GeoJSON string

    inputExpressions

    This function takes 1 parameter which is the geometry string. The string format must be GeoJson.

  22. case class ST_GeomFromText(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a Geometry from a WKT string

    Return a Geometry from a WKT string

    inputExpressions

    This function takes 1 parameter which is the geometry string. The string format must be WKT.

  23. case class ST_GeomFromWKB(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a Geometry from a WKB string

    Return a Geometry from a WKB string

    inputExpressions

    This function takes 1 parameter which is the geometry string. The string format must be WKB.

  24. case class ST_GeomFromWKT(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a Geometry from a WKT string

    Return a Geometry from a WKT string

    inputExpressions

    This function takes 1 parameter which is the geometry string. The string format must be WKT.

  25. case class ST_GeometryN(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Logging with Product with Serializable

    Permalink
  26. case class ST_GeometryType(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  27. case class ST_InteriorRingN(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  28. case class ST_Intersection(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return the intersection shape of two geometries.

    Return the intersection shape of two geometries. The return type is a geometry

  29. class ST_Intersection_Aggr extends expressions.Aggregator[Geometry, Geometry, Geometry] with TraitSTAggregateExec

    Permalink

    Return the polygon intersection of all Polygon in the given column

  30. case class ST_Intersects(inputExpressions: Seq[Expression]) extends ST_Predicate with CodegenFallback with Product with Serializable

    Permalink

    Test if leftGeometry full intersects rightGeometry

  31. case class ST_IsClosed(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  32. case class ST_IsRing(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  33. case class ST_IsSimple(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Test if Geometry is simple.

  34. case class ST_IsValid(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Test if Geometry is valid.

  35. case class ST_Length(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return the length measurement of a Geometry

  36. case class ST_LineInterpolatePoint(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Returns a point interpolated along a line.

    Returns a point interpolated along a line. First argument must be a LINESTRING. Second argument is a Double between 0 and 1 representing fraction of total linestring length the point has to be located.

  37. case class ST_LineMerge(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Returns a LineString formed by sewing together the constituent line work of a MULTILINESTRING.

    Returns a LineString formed by sewing together the constituent line work of a MULTILINESTRING. Only works for MultiLineString. Using other geometry will return GEOMETRYCOLLECTION EMPTY If the MultiLineString is can't be merged, the original multilinestring is returned

    inputExpressions

    Geometry

  38. case class ST_LineStringFromText(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a linestring from a string.

    Return a linestring from a string. The string must be plain string and each coordinate must be separated by a delimiter.

  39. case class ST_LineSubstring(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return a linestring being a substring of the input one starting and ending at the given fractions of total 2d length.

    Return a linestring being a substring of the input one starting and ending at the given fractions of total 2d length. Second and third arguments are Double values between 0 and 1. This only works with LINESTRINGs.

  40. case class ST_MakeValid(inputExpressions: Seq[Expression]) extends Expression with Generator with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Given an invalid polygon or multipolygon and removeHoles boolean flag, create a valid representation of the geometry

  41. case class ST_MinimumBoundingCircle(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  42. case class ST_MinimumBoundingRadius(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  43. case class ST_NPoints(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Return the number of Points in geometry.

  44. case class ST_NumGeometries(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Returns the number of Geometries.

    Returns the number of Geometries. If geometry is a GEOMETRYCOLLECTION (or MULTI*) return the number of geometries, for single geometries will return 1

    This method implements the SQL/MM specification. SQL-MM 3: 9.1.4

    inputExpressions

    Geometry

  45. case class ST_NumInteriorRings(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  46. case class ST_Overlaps(inputExpressions: Seq[Expression]) extends ST_Predicate with CodegenFallback with Product with Serializable

    Permalink

    Test if leftGeometry overlaps rightGeometry

  47. case class ST_Point(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a Point from X and Y

    Return a Point from X and Y

    inputExpressions

    This function takes 2 parameter which are point x and y.

  48. case class ST_PointFromText(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a point from a string.

    Return a point from a string. The string must be plain string and each coordinate must be separated by a delimiter.

    inputExpressions

    This function takes 2 parameters. The first parameter is the input geometry string, the second parameter is the delimiter. String format should be similar to CSV/TSV

  49. case class ST_PolygonFromEnvelope(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a polygon given minX,minY,maxX,maxY

  50. case class ST_PolygonFromText(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with UserDataGeneratator with Product with Serializable

    Permalink

    Return a polygon from a string.

    Return a polygon from a string. The string must be plain string and each coordinate must be separated by a delimiter.

  51. case class ST_PrecisionReduce(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Reduce the precision of the given geometry to the given number of decimal places

    Reduce the precision of the given geometry to the given number of decimal places

    inputExpressions

    The first arg is a geom and the second arg is an integer scale, specifying the number of decimal places of the new coordinate. The last decimal place will be rounded to the nearest number.

  52. abstract class ST_Predicate extends Expression

    Permalink
  53. case class ST_RemovePoint(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  54. case class ST_SimplifyPreserveTopology(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Simplifies a geometry and ensures that the result is a valid geometry having the same dimension and number of components as the input, and with the components having the same topological relationship.

    Simplifies a geometry and ensures that the result is a valid geometry having the same dimension and number of components as the input, and with the components having the same topological relationship. The simplification uses a maximum-distance difference algorithm similar to the Douglas-Peucker algorithm.

    inputExpressions

    first arg is geometry second arg is distance tolerance for the simplification(all vertices in the simplified geometry will be within this distance of the original geometry)

  55. case class ST_StartPoint(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  56. case class ST_Touches(inputExpressions: Seq[Expression]) extends ST_Predicate with CodegenFallback with Product with Serializable

    Permalink

    Test if leftGeometry touches rightGeometry

  57. case class ST_Transform(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink

    Given a geometry, sourceEPSGcode, and targetEPSGcode, convert the geometry's Spatial Reference System / Coordinate Reference System.

  58. class ST_Union_Aggr extends expressions.Aggregator[Geometry, Geometry, Geometry] with TraitSTAggregateExec

    Permalink

    Return the polygon union of all Polygon in the given column

  59. case class ST_Within(inputExpressions: Seq[Expression]) extends ST_Predicate with CodegenFallback with Product with Serializable

    Permalink

    Test if leftGeometry is full within rightGeometry

  60. case class ST_X(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  61. case class ST_Y(inputExpressions: Seq[Expression]) extends Expression with CodegenFallback with Product with Serializable

    Permalink
  62. trait TraitSTAggregateExec extends AnyRef

    Permalink

    traits for creating Aggregate Function

  63. trait UserDataGeneratator extends AnyRef

    Permalink

Value Members

  1. object implicits

    Permalink

Ungrouped