com.hazelcast.mapreduce
Interface Context<K,V>
- Type Parameters:
K
- key type of the resulting keysV
- value type of the resulting values
- All Known Implementing Classes:
- DefaultContext
@Beta
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 |
void |
emit(K key,
V value)
Emits a key-value pair to the intermediate working space. |
emit
void emit(K key,
V value)
- 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.value
- emitted value.
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.