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
    Constructor
    Description
     
  • Method Summary

    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>
     
    boolean
     
    void
    merge(org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry> other)
     
    void
     
    org.locationtech.jts.geom.Geometry
     

    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

    Methods inherited from class java.lang.Object

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

    • EnvelopeAccumulator

      public EnvelopeAccumulator()
  • Method Details

    • isZero

      public boolean isZero()
      Specified by:
      isZero in class org.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 class org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>
    • reset

      public void reset()
      Specified by:
      reset in class org.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 class org.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 class org.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 class org.apache.spark.util.AccumulatorV2<org.locationtech.jts.geom.Envelope,org.locationtech.jts.geom.Geometry>