The Java library for WMR is based on two user classes, and using an iterator to manage the list of values passed to the reducer. The two classes that users must provide are:
public class Mapper
{
public void map(String, String);
}
public class Reducer
{
public void reduce(String, WmrIterator);
}