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
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.locationtech.jts.geom.Envelope v) org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry> copy()booleanisZero()voidmerge(org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope, org.locationtech.jts.geom.Geometry> other) voidreset()org.locationtech.jts.geom.Geometryvalue()Methods inherited from class org.apache.spark.util.AccumulatorV2
copyAndReset, countFailedValues, excludeFromHeartbeat, id, isAtDriverSide, isRegistered, metadata, metadata_$eq, name, register, register$default$2, register$default$3, toInfo, toInfoUpdate, toString, withBufferSerialized, writeReplace
-
Constructor Details
-
EnvelopeAccumulator
public EnvelopeAccumulator()
-
-
Method Details
-
isZero
public boolean isZero()- Specified by:
isZeroin 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:
copyin classorg.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-
reset
public void reset()- Specified by:
resetin 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:
addin 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:
mergein 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:
valuein classorg.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
-