Class EnvelopeAccumulator
- java.lang.Object
-
- org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-
- org.apache.sedona.core.monitoring.EnvelopeAccumulator
-
- All Implemented Interfaces:
Serializable
,scala.Serializable
public class EnvelopeAccumulator extends org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
An accumulator that accumulates the envelope of geometries.Useful to determine the spatial extent of data in the task and stage.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnvelopeAccumulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(org.locationtech.jts.geom.Envelope v)
org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
copy()
boolean
isZero()
void
merge(org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry> other)
void
reset()
org.locationtech.jts.geom.Geometry
value()
-
-
-
Method Detail
-
isZero
public boolean isZero()
- Specified by:
isZero
in classorg.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-
copy
public org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry> copy()
- Specified by:
copy
in classorg.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-
reset
public void reset()
- Specified by:
reset
in classorg.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-
add
public void add(org.locationtech.jts.geom.Envelope v)
- Specified by:
add
in classorg.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-
merge
public void merge(org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry> other)
- Specified by:
merge
in classorg.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-
value
public org.locationtech.jts.geom.Geometry value()
- Specified by:
value
in classorg.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-
-