Method Create
Create(Object)
Provides incoming element with a new instance of Reducer to merge intermediate key-value pairs from Combiner.
Declaration
IReducer Create(object key)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | Key for new Reducer |
Returns
Type | Description |
---|---|
IReducer | New instance of IReducer. |
Examples
Following example demonstrates the implementation of Create.
public IReducer Create(object key)
{
WordCountReducer wcReducer = new WordCountReducer(); //new instance of Reducer.
return wcReducer;
}