com.hazelcast.mapreduce

## Interface Collator<ValueIn,ValueOut>

- Type Parameters:
    `ValueIn` - value type of the resulting values
    `ValueOut` - type for the collated result

  Deprecated.
  MapReduce is deprecated and will be removed in 4.0. For map aggregations, you can use `Aggregator` on IMap. For general data processing, it is superseded by Hazelcast Jet.

      @Deprecated
      public interface Collator<ValueIn,ValueOut>

  This interface can be implemented to define a Collator which is executed after calculation of the MapReduce algorithm on remote cluster nodes but before returning the final result.
  Collator can, for example, be used to sum up a final value.
  Since:
    3.2

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValueOut` | `collate(Iterable<ValueIn> values)` Deprecated. This method is called with the mapped and possibly reduced values from the MapReduce algorithm.

- - ### Method Detail

    - #### collate

          ValueOut collate(Iterable<ValueIn> values)

      Deprecated.
      This method is called with the mapped and possibly reduced values from the MapReduce algorithm.
      Parameters:
        `values` - The mapped and possibly reduced values from the MapReduce algorithm
      Returns:
        The collated result

Copyright © 2020. All rights reserved.