Method Reduce
Reduce(Object)
This method will reduce (process) the intermediate key-value pairs into further meaningful pairs.
If the workflow diagram is referred, it means that the values of the grouped elements from Combiner are summed up to find the actual word count.
Declaration
void Reduce(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Value for the specified key. |
Examples
Following example illustrate the usage of Reduce.
public void Reduce(object value)
{
count += int.Parse(value.ToString());
}