/** * Returns a builder for an {@code InsertAllRequest} object given the destination table and the * rows to insert. */ public static Builder newBuilder(TableId table, RowToInsert... rows) { return newBuilder(table, ImmutableList.copyOf(rows)); }
/** * Returns a {@code InsertAllRequest} object given the destination table and the rows to insert. */ public static InsertAllRequest of(String datasetId, String tableId, Iterable<RowToInsert> rows) { return newBuilder(datasetId, tableId, rows).build(); }
/** * Returns a builder for an {@code InsertAllRequest} object given the destination table and the * rows to insert. */ public static Builder newBuilder(TableId table, Iterable<RowToInsert> rows) { return newBuilder(table).setRows(rows); }
/** * Returns a builder for an {@code InsertAllRequest} object given the destination table and the * rows to insert. */ public static Builder newBuilder(String datasetId, String tableId, RowToInsert... rows) { return newBuilder(TableId.of(datasetId, tableId), rows); }
/** * Returns a builder for an {@code InsertAllRequest} object given the destination table and the * rows to insert. */ public static Builder newBuilder(TableInfo tableInfo, RowToInsert... rows) { return newBuilder(tableInfo.getTableId(), rows); }
/** * Returns a {@code InsertAllRequest} object given the destination table and the rows to insert. */ public static InsertAllRequest of(TableId tableId, RowToInsert... rows) { return newBuilder(tableId, rows).build(); }
/** * Returns a builder for an {@code InsertAllRequest} object given the destination table and the * rows to insert. */ public static Builder newBuilder(TableInfo tableInfo, Iterable<RowToInsert> rows) { return newBuilder(tableInfo.getTableId(), rows); }
/** * Returns a builder for an {@code InsertAllRequest} object given the destination table and the * rows to insert. */ public static Builder newBuilder(String datasetId, String tableId, Iterable<RowToInsert> rows) { return newBuilder(TableId.of(datasetId, tableId), rows); }
/** * Returns a {@code InsertAllRequest} object given the destination table and the rows to insert. */ public static InsertAllRequest of(TableId tableId, Iterable<RowToInsert> rows) { return newBuilder(tableId, rows).build(); }
/** * Returns a {@code InsertAllRequest} object given the destination table and the rows to insert. */ public static InsertAllRequest of(String datasetId, String tableId, RowToInsert... rows) { return newBuilder(datasetId, tableId, rows).build(); }
/** * Returns a {@code InsertAllRequest} object given the destination table and the rows to insert. */ public static InsertAllRequest of(TableInfo tableInfo, RowToInsert... rows) { return newBuilder(tableInfo.getTableId(), rows).build(); }
/** * Returns a {@code InsertAllRequest} object given the destination table and the rows to insert. */ public static InsertAllRequest of(TableInfo tableInfo, Iterable<RowToInsert> rows) { return newBuilder(tableInfo.getTableId(), rows).build(); }
InsertAllResponse response = bigquery.insertAll( InsertAllRequest.newBuilder(tableId) .addRow("rowId", rowContent)
InsertAllRequest.newBuilder(tableId).addRow(firstRow).addRow(secondRow).build();
throws BigQueryException { InsertAllRequest request = InsertAllRequest.newBuilder(getTableId(), rows) .setSkipInvalidRows(skipInvalidRows) .setIgnoreUnknownValues(ignoreUnknownValues)
builder2.put("NumericField", new BigDecimal("123456789.123456789")); InsertAllRequest request = InsertAllRequest.newBuilder(tableInfo.getTableId()) .addRow(builder1.build()) .addRow(builder2.build())
TableId tableId = TableId.of(OTHER_PROJECT, DATASET, TABLE); InsertAllRequest request = InsertAllRequest.newBuilder(tableId) .setRows(rows) .setSkipInvalidRows(false)
TableId tableId = TableId.of("project-different-from-option", DATASET, TABLE); InsertAllRequest request = InsertAllRequest.newBuilder(tableId) .setRows(rows) .setSkipInvalidRows(false)
List<RowToInsert> rows = ImmutableList.of(RowToInsert.of(row1), RowToInsert.of(row2)); InsertAllRequest request = InsertAllRequest.newBuilder(TABLE_ID) .setRows(rows) .setSkipInvalidRows(false)
ImmutableList.of(new RowToInsert("row1", row1), new RowToInsert("row2", row2)); InsertAllRequest request = InsertAllRequest.newBuilder(TABLE_ID) .setRows(rows) .setSkipInvalidRows(false)