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