public void setSpills(Spill spill, MapperCounters counters) {
	long inputRecsInPreviousSpills = 0;
	long outputRecsInPreviousSpills = 0;
	
	List<SpillInfo> list = spill.getSpillInfoList();
	
	SpillInfo info = null;
	for(int i = 0; i < list.size(); i++) {
	    info = list.get(i);
	    spills.add(new SpillPiece(info));
	    
	    if(i != list.size() - 1) {
		inputRecsInPreviousSpills += info.getRecordsBeforeCombine();
		outputRecsInPreviousSpills += info.getRecordsAfterCombine();
	    }
	 
	}
	
	/*
	if(memCombineFunc != null && info != null) {
	    memCombineFunc.settCombineInputRecords(info.getRecordsBeforeCombine());
	    
	    memCombineFunc.setInputRecsInPreviousSpills(inputRecsInPreviousSpills);
	    
	    memCombineFunc.setcCombineInputRecords(counters.getCombine_input_records() - inputRecsInPreviousSpills);
	    memCombineFunc.setcCombineOutputRecords(counters.getCombine_output_records() - outputRecsInPreviousSpills);
	    
	    if(info.getRecordsAfterCombine() != -1) {
		 memCombineFunc.setcCombineInputRecords(info.getRecordsBeforeCombine());
		 memCombineFunc.setcCombineOutputRecords(info.getRecordsAfterCombine());
	    }
	}
	*/
	if(memCombineFunc != null && spill.getCurrentCombine() != null) {
	    MemCombine func = spill.getCurrentCombine();
	    
	    memCombineFunc.setcCombineInputRecords(counters.getCombine_input_records() - func.getStartInputRecord());
	    memCombineFunc.setcCombineOutputRecords(counters.getCombine_output_records() - func.getCurrentCombineOutputRecords());
	    memCombineFunc.setPartitionId(func.getPartitionId());
	    memCombineFunc.setSpillNum(func.getSpillNum());
	    memCombineFunc.setStartInputRecord(func.getStartInputRecord());
	    memCombineFunc.settCombineInputRecords(func.getTotalRecord());
	}
    }