Class AggReduce.AccReduceImpl

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

public class AggReduce.AccReduceImpl extends Object implements Accumulator<I,E,I>, Serializable
See Also:
  • Field Details

    • value

      protected I value
  • Constructor Details

    • AccReduceImpl

      public AccReduceImpl(I value)
  • Method Details

    • accumulate

      public void accumulate(I input, 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,I>
    • getValue

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

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

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