Interface Aggregator<K,​V,​VA>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      VA apply​(K key, V value, VA aggregate)
      Compute a new aggregate from the key and value of a record and the current aggregate of the same key.
    • Method Detail

      • apply

        VA apply​(K key,
                 V value,
                 VA aggregate)
        Compute a new aggregate from the key and value of a record and the current aggregate of the same key.
        Parameters:
        key - the key of the record
        value - the value of the record
        aggregate - the current aggregate value
        Returns:
        the new aggregate value