Method Combine
Combine(Object)
This method reduces the task result locally in chunks so that the Reducer is not burdened with excessive processing. If the workflow diagram is referred, it means that the elements with the same keys are grouped together before being sent to the Reducer for counting the word occurrence.
Declaration
void Combine(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Value for making grouped data for reducer. |
Examples
Following example demonstrates how to implement Combine.
public void Combine(object value)
{
count += int.Parse(value.ToString());
}