Class PolygonRDD
- java.lang.Object
-
- org.apache.sedona.core.spatialRDD.SpatialRDD<org.locationtech.jts.geom.Polygon>
-
- org.apache.sedona.core.spatialRDD.PolygonRDD
-
- All Implemented Interfaces:
Serializable
public class PolygonRDD extends SpatialRDD<org.locationtech.jts.geom.Polygon>
The Class PolygonRDD.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.sedona.core.spatialRDD.SpatialRDD
approximateTotalCount, boundaryEnvelope, CRStransformation, fieldNames, indexedRawRDD, indexedRDD, rawSpatialRDD, schema, sourceEpsgCode, spatialPartitionedRDD, targetEpgsgCode
-
-
Constructor Summary
Constructors Constructor Description PolygonRDD()
Instantiates a new polygon RDD.PolygonRDD(org.apache.spark.api.java.JavaRDD<org.locationtech.jts.geom.Polygon> rawSpatialRDD)
Instantiates a new polygon RDD.PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, Integer startOffset, Integer endOffset, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData)
Instantiates a new polygon RDD.PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, Integer startOffset, Integer endOffset, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData, Integer partitions)
Instantiates a new polygon RDD.PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, Integer partitions, org.apache.spark.api.java.function.FlatMapFunction userSuppliedMapper)
Instantiates a new polygon RDD.PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData)
Instantiates a new polygon RDD.PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData, Integer partitions)
Instantiates a new polygon RDD.PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, org.apache.spark.api.java.function.FlatMapFunction userSuppliedMapper)
Instantiates a new polygon RDD.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.jts.geom.Polygon
PolygonUnion()
Polygon union.-
Methods inherited from class org.apache.sedona.core.spatialRDD.SpatialRDD
analyze, analyze, analyze, boundary, buildIndex, calc_partitioner, coalesceAndBuildRawIndex, countWithoutDuplicates, countWithoutDuplicatesSPRDD, CRSTransform, CRSTransform, flipCoordinates, getCRStransformation, getPartitioner, getRawSpatialRDD, getSampleNumber, getSourceEpsgCode, getTargetEpgsgCode, MinimumBoundingRectangle, saveAsGeoJSON, saveAsWKB, saveAsWKT, setNeighborSampleNumber, setRawSpatialRDD, setSampleNumber, spatialPartitioning, spatialPartitioning, spatialPartitioning, spatialPartitioning, spatialPartitioning, spatialPartitioningWithoutDuplicates, spatialPartitioningWithoutDuplicates, spatialPartitioningWithoutDuplicates, spatialPartitioningWithoutDuplicates
-
-
-
-
Constructor Detail
-
PolygonRDD
public PolygonRDD()
Instantiates a new polygon RDD.
-
PolygonRDD
public PolygonRDD(org.apache.spark.api.java.JavaRDD<org.locationtech.jts.geom.Polygon> rawSpatialRDD)
Instantiates a new polygon RDD.- Parameters:
rawSpatialRDD
- the raw spatial RDD
-
PolygonRDD
public PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, Integer startOffset, Integer endOffset, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData)
Instantiates a new polygon RDD.- Parameters:
sparkContext
- the spark contextInputLocation
- the input locationstartOffset
- the start offsetendOffset
- the end offsetsplitter
- the splittercarryInputData
- the carry input data
-
PolygonRDD
public PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData, Integer partitions)
Instantiates a new polygon RDD.- Parameters:
sparkContext
- the spark contextInputLocation
- the input locationsplitter
- the splittercarryInputData
- the carry input datapartitions
- the partitions
-
PolygonRDD
public PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData)
Instantiates a new polygon RDD.- Parameters:
sparkContext
- the spark contextInputLocation
- the input locationsplitter
- the splittercarryInputData
- the carry input data
-
PolygonRDD
public PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, Integer partitions, org.apache.spark.api.java.function.FlatMapFunction userSuppliedMapper)
Instantiates a new polygon RDD.- Parameters:
sparkContext
- the spark contextInputLocation
- the input locationpartitions
- the partitionsuserSuppliedMapper
- the user supplied mapper
-
PolygonRDD
public PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, org.apache.spark.api.java.function.FlatMapFunction userSuppliedMapper)
Instantiates a new polygon RDD.- Parameters:
sparkContext
- the spark contextInputLocation
- the input locationuserSuppliedMapper
- the user supplied mapper
-
PolygonRDD
public PolygonRDD(org.apache.spark.api.java.JavaSparkContext sparkContext, String InputLocation, Integer startOffset, Integer endOffset, org.apache.sedona.common.enums.FileDataSplitter splitter, boolean carryInputData, Integer partitions)
Instantiates a new polygon RDD.- Parameters:
sparkContext
- the spark contextInputLocation
- the input locationstartOffset
- the start offsetendOffset
- the end offsetsplitter
- the splittercarryInputData
- the carry input datapartitions
- the partitions
-
-