code: public void add(InputSplit split) throws IOException, InterruptedException {
      splits.add(split);
      totalSplitSizes += split.getLength();
      locations = null;
    }
docs: Add an InputSplit to this collection.