Class AggregatorWithName<T extends Value>


  • @PublicEvolving
    public class AggregatorWithName<T extends Value>
    extends Object
    Simple utility class holding an Aggregator with the name it is registered under.
    • Constructor Detail

      • AggregatorWithName

        public AggregatorWithName​(String name,
                                  Aggregator<T> aggregator)
        Creates a new instance for the given aggregator and name.
        Parameters:
        name - The name that the aggregator is registered under.
        aggregator - The aggregator.
    • Method Detail

      • getName

        public String getName()
        Gets the name that the aggregator is registered under.
        Returns:
        The name that the aggregator is registered under.
      • getAggregator

        public Aggregator<T> getAggregator()
        Gets the aggregator.
        Returns:
        The aggregator.