Interface Aggregator

  • All Implemented Interfaces:

    
    public interface Aggregator
    
                        

    The interface Aggregator represents an aggregator used by graph consumers.

    Since:

    3.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract long getCount() Gets the number of aggregated values.
      abstract double getResult() Gets the result of the aggregation using stored values.
      abstract void addValue(double value) Adds the specified value to the storage of the current aggregator.
      abstract void reset() Reset the state of the aggregator.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getCount

         abstract long getCount()

        Gets the number of aggregated values.

        Returns:

        the number of aggregated values

      • getResult

         abstract double getResult()

        Gets the result of the aggregation using stored values.

        Returns:

        the result of the aggregation.

      • addValue

         abstract void addValue(double value)

        Adds the specified value to the storage of the current aggregator.

        Parameters:
        value - the value to aggregate
      • reset

         abstract void reset()

        Reset the state of the aggregator.