Class AggCounting.AccCounting

java.lang.Object
org.aksw.commons.collector.core.AggCounting.AccCounting
All Implemented Interfaces:
Serializable, Accumulator<I,E,Long>
Enclosing class:
AggCounting<I,E>

public class AggCounting.AccCounting extends Object implements Accumulator<I,E,Long>, Serializable
Author:
raven
See Also:
  • Field Details

    • count

      protected long count
  • Constructor Details

    • AccCounting

      public AccCounting(long count)
  • Method Details

    • accumulate

      public void accumulate(I binding, E env)
      Description copied from interface: Accumulator
      Accumulate an input value w.r.t. to an environment
      Specified by:
      accumulate in interface Accumulator<I,E,Long>
    • getValue

      public Long getValue()
      Description copied from interface: Accumulator
      Obtain the output based on the so-far accumulated inputs
      Specified by:
      getValue in interface Accumulator<I,E,Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object