Method Emit
Emit(Object, Object)
Transforms the input by emitting each word with a key-value pair in Mapper.
Declaration
void Emit(object key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | key |
System.Object | value | value |
Examples
public void Map(object key, object value, IOutputMap context)
{
if (value is IList)
{
IList order = value as IList;
foreach (string product in order)
{
context.Emit(product, 1);
}
}
}