public RowMutations add(List<? extends Mutation> mutations) throws IOException {
    for (Mutation mutation : mutations) {
      if (!Bytes.equals(row, mutation.getRow())) {
        throw new WrongRowIOException(
          "The row in the recently added Mutation <" + Bytes.toStringBinary(mutation.getRow())
            + "> doesn't match the original one <" + Bytes.toStringBinary(this.row) + ">");
      }
    }
    this.mutations.addAll(mutations);
    return this;
  }
Add a list of mutations
@param mutations The data to send.
@throws IOException if the row of added mutation doesn't match the original row
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RowMutations.java