• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Method Create

Create(Object)

This method will provide the incoming element with a new instance of the Reducer so that it merges the intermediate key-value pairs from the Combiner.

Declaration
IReducer Create(object key)
Parameters
Type Name Description
System.Object key

Key for new Reducer

Returns
Type Description
IReducer

New instance of IReducer.

Examples

Following example demonstrates the implementation of Create.

public IReducer Create(object key)
 {
     WordCountReducer wcReducer = new WordCountReducer(); //new instance of Reducer.
     return wcReducer;
 }
Back to top Copyright © 2017 Alachisoft