code: private void addCreatedSplit(List<InputSplit> splitList, 
                                 List<String> locations, 
                                 ArrayList<OneBlockInfo> validBlocks) {
      // create an input split
      Path[] fl = new Path[validBlocks.size()];
      long[] offset = new long[validBlocks.size()];
      long[] length = new long[validBlocks.size()];
      for (int i = 0; i < validBlocks.size(); i++) {
        fl[i] = validBlocks.get(i).onepath; 
        offset[i] = validBlocks.get(i).offset;
        length[i] = validBlocks.get(i).length;
      }
  
       // add this split to the list that is returned
      CombineFileSplit thissplit = new CombineFileSplit(fl, offset, 
                                     length, locations.toArray(new String[0]));
      splitList.add(thissplit); 
    }
docs: Create a single split from the list of blocks specified in validBlocks
  Add this new split into splitList.