Interface IOutputMap
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Obsolete("This feature is not in active development and may be removed in a future update.")]
public interface IOutputMap
              Methods
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);
        }
    }
}