Creates a new row in the table containing the given values.

@param values the column values to set
@return this table, to allow chaining
@throws TooManyColumnsException if more values are given than columns are
available
760439
public DataTable createRow(String... values) throws TooManyColumnsException {
		rows.add(new DataRow(columns).setAll(values));
		return this;
	}
1214679
def AddRow(self, values):
    
    if self._number_of_columns and len(values) != self._number_of_columns:
      raise ValueError('Number of values is out of bounds.')

    if not self._column_sizes and self._columns:
      self._column_sizes = [len(column) for column in self._columns]

    value_strings = []
    for value_index, value_string in enumerate(values):
      if not isinstance(value_string, py2to3.UNICODE_TYPE):
        value_string = '{0!s}'.format(value_string)
      value_strings.append(value_string)

      self._column_sizes[value_index] = max(
          self._column_sizes[value_index], len(value_string))

    self._rows.append(value_strings)

    if not self._number_of_columns:
      self._number_of_columns = len(value_strings)
708221
public void createValueCells(Object... values) {
        for (Object value : values) {
            if (value == null) {
                this.createCell("");
                continue;
            }

            if (value instanceof String) {
                this.createCell((String) value);
            } else if (value instanceof Date) {
                this.createCell((Date) value);
            } else if (ValidationObjUtil.isIntType(value.getClass())) {
                long longValue = Long.valueOf(value + "");
                this.createCell(longValue);
            } else if (ValidationObjUtil.isDoubleType(value.getClass())) {
                double doubleValue = Double.valueOf(value + "");
                this.createCell(doubleValue);
            } else {
                this.createCell(value);
            }
        }
    }
435472
protected Object[] columnValues(Object[] value) {
        Object[] res = new Object[value.length];
        for (int i = 0; i < value.length; i++) {
            res[i] = columnValue(value[i]);
        }
        return res;
    }
1217992
public Record set(String column, Object value) {
		getColumns().put(column, value);
		return this;
	}
916225
public static <T, C extends Collection<T>> C addAll (
        C col, Iterable<? extends Collection<? extends T>> values)
    {
        for (Collection<? extends T> val : values) {
            col.addAll(val);
        }
        return col;
    }
59165
public static String expandSubQuery(SubQuery subQuery, List<Object> values) {
		Table table = DOInfoReader.getTable(subQuery.getClazz());
		
		StringBuilder sql = new StringBuilder();
		sql.append("SELECT * FROM (SELECT ");
		sql.append(subQuery.getField());
		sql.append(" FROM ").append(getTableName(table));
		sql.append(" ").append(SQLUtils.autoSetSoftDeleted(subQuery.getPostSql(), subQuery.getClazz()));
		sql.append(") sub ");
		
		if(subQuery.getArgs() != null) {
			values.addAll(Arrays.asList(subQuery.getArgs()));
		}
		return sql.toString();
	}
1102869
@SafeVarargs
  public final DataSet row(Object... columnValues) {
    checkIfNotReadOnly();
    if (columnValues.length != source.getColumnCount()) {
      throw new InvalidOperationException(source.getColumnCount() +
          " columns expected, not " + columnValues.length + ".");
    }
    addRow(new Row(columnValues));
    return this;
  }
1210109
public static void appendTable(String[][] values, HSSFCellStyle[][] styles) {
        createXssfSheetIfNull();
        if (Checker.isNotNull(values)) {
            for (int i = 0; i < values.length; i++) {
                XSSFRow row = xssfSheet.createRow(i);
                for (int j = 0; j < values[i].length; j++) {
                    XSSFCell cell = row.createCell(j);
                    cell.setCellValue(values[i][j]);
                    if (Checker.isNotNull(styles)) {
                        int rowIndex = i < styles.length ? i : styles.length - 1;
                        int colIndex = j < styles[rowIndex].length ? j : styles[rowIndex].length - 1;
                        cell.setCellStyle(styles[rowIndex][colIndex]);
                    }
                }
            }
        }
    }
915171
public function values($values)
    {
        if(!$values instanceof KDatabaseQuerySelect)
        {
            if (!$this->columns && !is_numeric(key($values))) {
                $this->columns(array_keys($values));
            }

            $this->values[] = array_values($values);
        }
        else $this->values = $values;

        return $this;
    }
949833
public static Builder newBuilder(TableInfo tableInfo, RowToInsert... rows) {
    return newBuilder(tableInfo.getTableId(), rows);
  }
302905
public AbstractSheet<TRow, TColumn, TCell> setRows(List<TRow> rows) {
        this.rows = rows;
        return this;
    }
1344559
@InternalApi
  public static Row create(ByteString key, List<RowCell> cells) {
    return new AutoValue_Row(key, cells);
  }
1205120
public BooleanColumn set(Selection rowSelection, boolean newValue) {
        for (int row : rowSelection) {
            set(row, newValue);
        }
        return this;
    }
854515
public DataRow set(String columnCode, String value) throws UnknownColumnException {
		for (DataColumn column : columns) {
			if (columnCode.equals(column.getCode())) {
				content.put(column, value);
				return this;
			}
		}
		throw new UnknownColumnException(columnCode);
	}
1206912
public ProcessorGraphForkJoinTask createTask(@Nonnull final Values values) {
        StringBuilder missingAttributes = new StringBuilder();
        final Multimap<String, Processor> requiredAttributes = getAllRequiredAttributes();
        for (String attribute: requiredAttributes.keySet()) {
            if (!values.containsKey(attribute)) {
                missingAttributes.append("\n\t* ").append(attribute).append(" <- ")
                        .append(requiredAttributes.get(attribute));
            }
        }

        if (missingAttributes.length() > 0) {
            throw new IllegalArgumentException("It has been found that one or more required attributes are " +
                                                       "missing from the values object:" + missingAttributes +
                                                       "\n");
        }

        return new ProcessorGraphForkJoinTask(values);
    }
1138426
public static <E> Set<E> newHashSet(E... values) {
    Set<E> set = new HashSet<E>(values.length);
    for (E e : values) {
      set.add(e);
    }
    return set;
  }