MRFramework/src/main/java/com/mr/io/Collector.java
/**
	 * Returns a new Collector whose content is made of all tuples with
	 * given key
	 * @param key The key to find
	 * @return A new {@link Collector}
	 */
Returns a new Collector whose content is made of all tuples with
given key
@param key The key to find
@return A new  Collector
Returns a new Collector whose content is made of all tuples with given key @param key The key to find @return A new Collector
public Collector<KEY,VALUE> subCollector(KEY key) {
		Collector<KEY,VALUE> c = new Collector<KEY,VALUE>();
		synchronized (this) {
			for (Tuple<KEY,VALUE> t : m_tuples)
			{
				if (t.getKey().equals(key))
					c.m_tuples.add(t);
			}
		}
		return c;
	}
public Collector < KEY , VALUE > subCollector ( KEY key ) { Collector < KEY , VALUE > c = new Collector < KEY , VALUE > ( ) ; synchronized ( this ) { for ( Tuple < KEY , VALUE > t : m_tuples ) { if ( t . getKey ( ) . equals ( key ) ) c . m_tuples . add ( t ) ; } } return c ; }
Returns a new Collector whose content is made of all tuples with
 given key
 @param key The key to find
 @return A new {@link Collector}
Returns a new Collector whose content is made of all tuples with given key @param key The key to find @return A new { @link Collector }