Class 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
    • 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()  
      • Methods inherited from class org.apache.spark.util.AccumulatorV2

        copyAndReset, countFailedValues, id, isAtDriverSide, isRegistered, metadata, metadata_$eq, name, register, register$default$2, register$default$3, toInfo, toString, withBufferSerialized, writeReplace
    • Constructor Detail

      • EnvelopeAccumulator

        public EnvelopeAccumulator()
    • Method Detail

      • 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>