Interface ICombinerFactory
Assigns a unique Combiner for each provided key.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public interface ICombinerFactory
Methods
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 demostrates the implementation of create.
public ICombiner Create(object key)
{
WordCountCombiner wcCombiner = new WordCountCombiner(); //new instance of combiner.
return wcCombiner;
}