Constructor KeyValuePair
KeyValuePair()
Default Constructor which initializes a new instance of key-value pair class.
Declaration
public KeyValuePair()
Examples
Example creates output map entry instance
public void BeginReduce()
{
outputMapEntry = new KeyValuePair();
}
KeyValuePair(Object, Object)
Initialize a new instance of key-value pair class.
Declaration
public KeyValuePair(object key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | key |
System.Object | value | value |
Examples
Example creates output map entry instance
public KeyValuePair FinishReduce()
{
outputMapEntry = new KeyValuePair(outputKey, count);
return outputMapEntry;
}