Class SetAccumulator<T>

  • All Implemented Interfaces:
    java.io.Serializable, scala.Serializable

    public class SetAccumulator<T>
    extends org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>>
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SetAccumulator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T v)  
      org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>> copy()  
      boolean isZero()  
      void merge​(org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>> other)  
      void reset()  
      java.util.Set<T> 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
      • Methods inherited from class java.lang.Object

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

      • SetAccumulator

        public SetAccumulator()
    • Method Detail

      • isZero

        public boolean isZero()
        Specified by:
        isZero in class org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>>
      • copy

        public org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>> copy()
        Specified by:
        copy in class org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>>
      • reset

        public void reset()
        Specified by:
        reset in class org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>>
      • add

        public void add​(T v)
        Specified by:
        add in class org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>>
      • merge

        public void merge​(org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>> other)
        Specified by:
        merge in class org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>>
      • value

        public java.util.Set<T> value()
        Specified by:
        value in class org.apache.spark.util.AccumulatorV2<T,​java.util.Set<T>>