if(shuffleInputs.size() == 1){
//no merging of inputs required
kvsReader = (KeyValuesReader) shuffleInputs.get(0).getReader();
}else {
//get a sort merged input
kvsReader = new InputMerger(shuffleInputs);
}
} catch (Exception e) {
throw new IOException(e);
}