Class FormatMapper<T extends org.locationtech.jts.geom.Geometry>

java.lang.Object
org.apache.sedona.common.utils.FormatUtils
org.apache.sedona.core.formatMapper.FormatMapper<T>
All Implemented Interfaces:
Serializable, org.apache.spark.api.java.function.FlatMapFunction<Iterator<String>,T>
Direct Known Subclasses:
LineStringFormatMapper, PointFormatMapper, PolygonFormatMapper, RectangleFormatMapper

public class FormatMapper<T extends org.locationtech.jts.geom.Geometry> extends org.apache.sedona.common.utils.FormatUtils implements org.apache.spark.api.java.function.FlatMapFunction<Iterator<String>,T>
See Also:
  • Field Summary

    Fields inherited from class org.apache.sedona.common.utils.FormatUtils

    allowTopologicallyInvalidGeometries, carryInputData, endOffset, factory, geoJSONReader, geometryType, otherAttributes, skipSyntacticallyInvalidGeometries, splitter, startOffset, wktReader
  • Constructor Summary

    Constructors
    Constructor
    Description
    FormatMapper(int startOffset, int endOffset, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData, org.apache.sedona.common.enums.GeometryType geometryType)
    Instantiates a new format mapper.
    FormatMapper(org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData)
    Instantiates a new format mapper.
    FormatMapper(org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData, org.apache.sedona.common.enums.GeometryType geometryType)
    This format mapper is used in SedonaSQL.
  • Method Summary

    Modifier and Type
    Method
    Description
    call(Iterator<String> stringIterator)
     

    Methods inherited from class org.apache.sedona.common.utils.FormatUtils

    addGeometry, addMultiGeometry, readCoordinates, readGeoJSON, readGeoJsonPropertyNames, readGeometry, readPropertyNames, readWkb, readWkt

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FormatMapper

      public FormatMapper(int startOffset, int endOffset, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData, org.apache.sedona.common.enums.GeometryType geometryType)
      Instantiates a new format mapper.
      Parameters:
      startOffset - the start offset
      endOffset - the end offset
      splitter - the splitter
      carryInputData - the carry input data
      geometryType -
    • FormatMapper

      public FormatMapper(org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData)
      Instantiates a new format mapper. This is extensively used in SedonaSQL.
      Parameters:
      splitter -
      carryInputData -
    • FormatMapper

      public FormatMapper(org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData, org.apache.sedona.common.enums.GeometryType geometryType)
      This format mapper is used in SedonaSQL.
      Parameters:
      splitter -
      carryInputData -
      geometryType -
  • Method Details