org.infinispan.demo.mapreduce
Class WordCountReducer

java.lang.Object
  extended by org.infinispan.demo.mapreduce.WordCountReducer
All Implemented Interfaces:
Serializable, Reducer<String,Integer>

public class WordCountReducer
extends Object
implements Reducer<String,Integer>

See Also:
Serialized Form

Constructor Summary
WordCountReducer()
           
 
Method Summary
 Integer reduce(String key, Iterator<Integer> iter)
          Combines/reduces all intermediate values for a particular intermediate key to a single value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordCountReducer

public WordCountReducer()
Method Detail

reduce

public Integer reduce(String key,
                      Iterator<Integer> iter)
Description copied from interface: Reducer
Combines/reduces all intermediate values for a particular intermediate key to a single value.

Specified by:
reduce in interface Reducer<String,Integer>

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.