Interface IReducerFactory
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Obsolete("This feature is not in active development and may be removed in a future update.")]
public interface IReducerFactory
Methods
Create(Object)
This method will provide the incoming element with a new instance of the Reducer so that it merges the intermediate key-value pairs from the 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;
}