Package

org.apache.spark.sql.geosparksql

expressions

Permalink

package expressions

Visibility
  1. Public
  2. All

Type Members

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

    Permalink

    Return the area measurement of a Geometry.

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

    Permalink
  3. 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.

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

    Permalink

    Return mathematical centroid of a geometry.

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

    Permalink

    Test if leftGeometry full contains rightGeometry

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

    Permalink

    Return the convex hull of a Geometry.

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

    Permalink

    Test if leftGeometry crosses rightGeometry

  8. 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.

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

    Permalink

    Return the bounding rectangle for a Geometry

  10. class ST_Envelope_Aggr extends UserDefinedAggregateFunction

    Permalink

    Return the envelope boundary of the entire column

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

    Permalink

    Test if leftGeometry is equal to rightGeometry

  12. 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.

  13. 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.

  14. 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.

  15. 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.

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

    Permalink
  17. 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

  18. class ST_Intersection_Aggr extends UserDefinedAggregateFunction

    Permalink

    Return the polygon intersection of all Polygon in the given column

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

    Permalink

    Test if leftGeometry full intersects rightGeometry

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

    Permalink

    Test if Geometry is simple.

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

    Permalink

    Test if Geometry is valid.

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

    Permalink

    Return the length measurement of a Geometry

  23. 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.

  24. 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

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

    Permalink

    Return the number of Points in geometry.

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

    Permalink

    Test if leftGeometry overlaps rightGeometry

  27. 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.

  28. 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

  29. 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

  30. 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.

  31. 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.

  32. 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)

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

    Permalink

    Test if leftGeometry touches rightGeometry

  34. 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.

  35. class ST_Union_Aggr extends UserDefinedAggregateFunction

    Permalink

    Return the polygon union of all Polygon in the given column

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

    Permalink

    Test if leftGeometry is full within rightGeometry

  37. trait UserDataGeneratator extends AnyRef

    Permalink

Ungrouped