Method FinishChunk
FinishChunk()
This method marks the end of the Combiner functionality as when the number of combined results reaches the specified chunk size, it sends the tasks in the form of a chunk to the Reducer and resets its internal state for the next chunk.
Declaration
object FinishChunk()
Returns
Type | Description |
---|---|
System.Object | Sends the chunk to Reducer. |
Examples
Following example demonstrates how to implement FinishChunk.
public object FinishChunk()
{
//finalize current chunk and re-initialize resources here
int countToBeReturned = count;
count = 0;
return countToBeReturned;
}