private static List<Split> computeSplits(Job job) {
		
		List<Split> splits = new ArrayList<Split>();
		
		File inputDir = new File(job.getInputDir());
		for (final File fileEntry : inputDir.listFiles()) {
			long bytes = fileEntry.length();
			if(bytes > Split.MAX_SPLIT_SIZE) {
				long numChunks = (bytes/Split.MAX_SPLIT_SIZE) + 1;
				long chunkSize = ((bytes/numChunks));
				long start, end;
				for(int i = 0; i < numChunks; i++) {
					start = i*chunkSize;
					end = (i+1)*chunkSize;
					if(i == numChunks - 1) {
						end = bytes;
					}
					
					splits.add(new Split(new FilePartition(
							fileEntry.getAbsolutePath(), start, end)));
				}
				
			}
		}
		
		return splits;
	}