com.hazelcast.mapreduce
Interface ReducerFactory<KeyIn,ValueIn,ValueOut>
- Type Parameters:
KeyIn
- key type of the resulting keysValueIn
- value type of the incoming valuesValueOut
- value type of the reduced values
- All Superinterfaces:
- Serializable
@Beta
public interface ReducerFactory<KeyIn,ValueIn,ValueOut>
- extends Serializable
A ReducerFactory implementation is used to build Reducer
instances per key.
An implementation needs to be serializable by Hazelcast since it might be distributed
inside the cluster to do parallel calculations of reducing step.
- Since:
- 3.2
newReducer
Reducer<ValueIn,ValueOut> newReducer(KeyIn key)
- Build a new
Reducer
instance specific to the supplied key.
- Parameters:
key
- key the Reducer is build for
- Returns:
- a Reducer instance specific for the given key
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.