Class LocalMSetAccumulator<E>

    • Constructor Detail

      • LocalMSetAccumulator

        public LocalMSetAccumulator​(String name)
        Instantiates a LocalMIndexAccumulator.
        Parameters:
        name - the name of the accumulator (null is ok)
    • Method Detail

      • add

        public void add​(E e)
        Description copied from interface: MAccumulator
        Adds an item to the accumulator
        Parameters:
        e - the item to add
      • merge

        public void merge​(MAccumulator<E,​Set<E>> other)
        Description copied from interface: MAccumulator
        Merges another accumulator with this one
        Parameters:
        other - the other accumulator to merge
      • reset

        public void reset()
        Description copied from interface: MAccumulator
        Resets the accumulator to its zero-value.
      • value

        public Set<E> value()
        Description copied from interface: MAccumulator
        The value of the accumulator.
        Returns:
        the result of the accumulator
      • isZero

        public boolean isZero()
        Description copied from interface: MAccumulator
        Determines if the accumulator is a zero value
        Returns:
        True if the accumulator is in a zero state
      • copy

        public LocalMAccumulator<E,​Set<E>> copy()
        Description copied from interface: Copyable

        Makes a copy of this object.

        Returns:
        A copy of this object.