com.hazelcast.mapreduce

## Interface Context<K,V>

- Type Parameters:
    `K` - key type of the resulting keys
    `V` - value type of the resulting values

  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 Context<K,V>

  The Context interface is used for emitting keys and values to the intermediate working space of the MapReduce algorithm.
  Since:
    3.2

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `emit(K key, V value)` Deprecated. Emits a key-value pair to the intermediate working space.

- - ### Method Detail

    - #### emit

          void emit(K key,
                    V value)

      Deprecated.
      Emits a key-value pair to the intermediate working space. The same key can be used multiple times to collect values under the same key.
      Parameters:
        `key` - emitted key to the intermediate working space.
        `value` - emitted value to the intermediate working space.

Copyright © 2020. All rights reserved.