public final class InsertAllRequest extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
InsertAllRequest.Builder |
static class |
InsertAllRequest.RowToInsert
A Google Big Query row to be inserted into a table.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<InsertAllRequest.RowToInsert> |
getRows()
Returns the rows to be inserted.
|
TableId |
getTable()
Returns the destination table for rows insert request.
|
String |
getTemplateSuffix()
If specified, the destination table is treated as a base template.
|
int |
hashCode() |
Boolean |
ignoreUnknownValues()
Returns whether to accept rows that contain values that do not match the schema.
|
static InsertAllRequest.Builder |
newBuilder(String datasetId,
String tableId)
Returns a builder for an
InsertAllRequest object given the destination table. |
static InsertAllRequest.Builder |
newBuilder(String datasetId,
String tableId,
InsertAllRequest.RowToInsert... rows)
Returns a builder for an
InsertAllRequest object given the destination table and the
rows to insert. |
static InsertAllRequest.Builder |
newBuilder(String datasetId,
String tableId,
Iterable<InsertAllRequest.RowToInsert> rows)
Returns a builder for an
InsertAllRequest object given the destination table and the
rows to insert. |
static InsertAllRequest.Builder |
newBuilder(TableId table)
Returns a builder for an
InsertAllRequest object given the destination table. |
static InsertAllRequest.Builder |
newBuilder(TableId table,
InsertAllRequest.RowToInsert... rows)
Returns a builder for an
InsertAllRequest object given the destination table and the
rows to insert. |
static InsertAllRequest.Builder |
newBuilder(TableId table,
Iterable<InsertAllRequest.RowToInsert> rows)
Returns a builder for an
InsertAllRequest object given the destination table and the
rows to insert. |
static InsertAllRequest.Builder |
newBuilder(TableInfo tableInfo,
InsertAllRequest.RowToInsert... rows)
Returns a builder for an
InsertAllRequest object given the destination table and the
rows to insert. |
static InsertAllRequest.Builder |
newBuilder(TableInfo tableInfo,
Iterable<InsertAllRequest.RowToInsert> rows)
Returns a builder for an
InsertAllRequest object given the destination table and the
rows to insert. |
static InsertAllRequest |
of(String datasetId,
String tableId,
InsertAllRequest.RowToInsert... rows)
Returns a
InsertAllRequest object given the destination table and the rows to insert. |
static InsertAllRequest |
of(String datasetId,
String tableId,
Iterable<InsertAllRequest.RowToInsert> rows)
Returns a
InsertAllRequest object given the destination table and the rows to insert. |
static InsertAllRequest |
of(TableId tableId,
InsertAllRequest.RowToInsert... rows)
Returns a
InsertAllRequest object given the destination table and the rows to insert. |
static InsertAllRequest |
of(TableId tableId,
Iterable<InsertAllRequest.RowToInsert> rows)
Returns a
InsertAllRequest object given the destination table and the rows to insert. |
static InsertAllRequest |
of(TableInfo tableInfo,
InsertAllRequest.RowToInsert... rows)
Returns a
InsertAllRequest object given the destination table and the rows to insert. |
static InsertAllRequest |
of(TableInfo tableInfo,
Iterable<InsertAllRequest.RowToInsert> rows)
Returns a
InsertAllRequest object given the destination table and the rows to insert. |
Boolean |
skipInvalidRows()
Returns whether to insert all valid rows of a request, even if invalid rows exist.
|
String |
toString() |
public TableId getTable()
public List<InsertAllRequest.RowToInsert> getRows()
public Boolean ignoreUnknownValues()
public Boolean skipInvalidRows()
public String getTemplateSuffix()
BigQuery.insertAll(InsertAllRequest)
is
called use:
String suffixTableId = ...;
TableInfo suffixTable = bigquery.getTable(DATASET, suffixTableId);
while (suffixTable == null) {
Thread.sleep(1000L);
suffixTable = bigquery.getTable(DATASET, suffixTableId);
}
public static InsertAllRequest.Builder newBuilder(TableId table)
InsertAllRequest
object given the destination table.public static InsertAllRequest.Builder newBuilder(TableId table, Iterable<InsertAllRequest.RowToInsert> rows)
InsertAllRequest
object given the destination table and the
rows to insert.public static InsertAllRequest.Builder newBuilder(TableId table, InsertAllRequest.RowToInsert... rows)
InsertAllRequest
object given the destination table and the
rows to insert.public static InsertAllRequest.Builder newBuilder(String datasetId, String tableId)
InsertAllRequest
object given the destination table.public static InsertAllRequest.Builder newBuilder(String datasetId, String tableId, Iterable<InsertAllRequest.RowToInsert> rows)
InsertAllRequest
object given the destination table and the
rows to insert.public static InsertAllRequest.Builder newBuilder(String datasetId, String tableId, InsertAllRequest.RowToInsert... rows)
InsertAllRequest
object given the destination table and the
rows to insert.public static InsertAllRequest.Builder newBuilder(TableInfo tableInfo, Iterable<InsertAllRequest.RowToInsert> rows)
InsertAllRequest
object given the destination table and the
rows to insert.public static InsertAllRequest.Builder newBuilder(TableInfo tableInfo, InsertAllRequest.RowToInsert... rows)
InsertAllRequest
object given the destination table and the
rows to insert.public static InsertAllRequest of(TableId tableId, Iterable<InsertAllRequest.RowToInsert> rows)
InsertAllRequest
object given the destination table and the rows to insert.public static InsertAllRequest of(TableId tableId, InsertAllRequest.RowToInsert... rows)
InsertAllRequest
object given the destination table and the rows to insert.public static InsertAllRequest of(String datasetId, String tableId, Iterable<InsertAllRequest.RowToInsert> rows)
InsertAllRequest
object given the destination table and the rows to insert.public static InsertAllRequest of(String datasetId, String tableId, InsertAllRequest.RowToInsert... rows)
InsertAllRequest
object given the destination table and the rows to insert.public static InsertAllRequest of(TableInfo tableInfo, Iterable<InsertAllRequest.RowToInsert> rows)
InsertAllRequest
object given the destination table and the rows to insert.public static InsertAllRequest of(TableInfo tableInfo, InsertAllRequest.RowToInsert... rows)
InsertAllRequest
object given the destination table and the rows to insert.Copyright © 2023 Google LLC. All rights reserved.