public RecordsBuilder add(Object... values) {
      Preconditions.checkArgument(schema.columns().size() == values.length);

      GenericRecord record = GenericRecord.create(schema);

      for (int i = 0; i < values.length; i++) {
        record.set(i, values[i]);
      }

      records.add(record);
      return this;
    }
Appends the rows to the table. If the table is partitioned then it will create the correct partitions.
@param rowSet The rows to add
@throws IOException If there is an exception during writing out the files
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/TestHelper.java