MRFramework/src/main/java/com/mr/net/Node.java
/**
	 * Read File (containnig the tuple object) 
	 * adds it to final result collector.
	 * 
	 * @param fileName
	 * @throws IOException
	 * @throws ClassNotFoundException
	 */
Read File (containnig the tuple object)
adds it to final result collector.


Read File ( containnig the tuple object ) adds it to final result collector .
private void readFiles(String fileName) throws IOException, ClassNotFoundException {
		S3Object s3o = App.s3.getObject(new GetObjectRequest(App.bucket, fileName));
		ObjectInputStream ois = new ObjectInputStream(s3o.getObjectContent());
		try{
			while (true) {
				Tuple<KEY, VALUE> tuple = (Tuple<KEY, VALUE>)ois.readObject();
				finalResult.collect(tuple);
			}
		} catch(EOFException ex){}
	}
private void readFiles ( String fileName ) throws IOException , ClassNotFoundException { S3Object s3o = App . s3 . getObject ( new GetObjectRequest ( App . bucket , fileName ) ) ; ObjectInputStream ois = new ObjectInputStream ( s3o . getObjectContent ( ) ) ; try { while ( true ) { Tuple < KEY , VALUE > tuple = ( Tuple < KEY , VALUE > ) ois . readObject ( ) ; finalResult . collect ( tuple ) ; } } catch ( EOFException ex ) { } }
Read File (containnig the tuple object)
 adds it to final result collector.
Read File ( containnig the tuple object ) adds it to final result collector .