public final class WriteChannelConfiguration extends Object implements LoadConfiguration, Serializable
WriteChannel
(BigQuery.writer(WriteChannelConfiguration)).| Modifier and Type | Class and Description |
|---|---|
static class |
WriteChannelConfiguration.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
WriteChannelConfiguration(WriteChannelConfiguration.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
static WriteChannelConfiguration.Builder |
builder(TableId destinationTable)
Creates a builder for a BigQuery Load Configuration given the destination table.
|
static WriteChannelConfiguration.Builder |
builder(TableId destinationTable,
FormatOptions format)
Creates a builder for a BigQuery Load Configuration given the destination table and format.
|
JobInfo.CreateDisposition |
createDisposition()
Returns whether the job is allowed to create new tables.
|
CsvOptions |
csvOptions()
Returns additional properties used to parse CSV data (used when
LoadConfiguration.format() is set
to CSV). |
TableId |
destinationTable()
Returns the destination table to load the data into.
|
boolean |
equals(Object obj) |
String |
format()
Returns the format of the data files.
|
int |
hashCode() |
Boolean |
ignoreUnknownValues()
Returns whether BigQuery should allow extra values that are not represented in the table
schema.
|
Integer |
maxBadRecords()
Returns the maximum number of bad records that BigQuery can ignore when running the job.
|
static WriteChannelConfiguration |
of(TableId destinationTable)
Returns a BigQuery Load Configuration for the given destination table.
|
static WriteChannelConfiguration |
of(TableId destinationTable,
FormatOptions format)
Returns a BigQuery Load Configuration for the given destination table and format.
|
List<String> |
projectionFields()
Returns which entity properties to load into BigQuery from a Cloud Datastore backup.
|
Schema |
schema()
Returns the schema for the destination table, if set.
|
WriteChannelConfiguration.Builder |
toBuilder()
Returns a builder for the load configuration object.
|
String |
toString() |
JobInfo.WriteDisposition |
writeDisposition()
Returns the action that should occur if the destination table already exists.
|
protected WriteChannelConfiguration(WriteChannelConfiguration.Builder builder)
public TableId destinationTable()
LoadConfigurationdestinationTable in interface LoadConfigurationpublic JobInfo.CreateDisposition createDisposition()
LoadConfigurationcreateDisposition in interface LoadConfigurationpublic JobInfo.WriteDisposition writeDisposition()
LoadConfigurationwriteDisposition in interface LoadConfigurationpublic CsvOptions csvOptions()
LoadConfigurationLoadConfiguration.format() is set
to CSV). Returns null if not set.csvOptions in interface LoadConfigurationpublic Integer maxBadRecords()
LoadConfigurationmaxBadRecords in interface LoadConfigurationpublic Schema schema()
LoadConfigurationnull otherwise.schema in interface LoadConfigurationpublic String format()
LoadConfigurationformat in interface LoadConfigurationpublic Boolean ignoreUnknownValues()
LoadConfigurationtrue, the extra values are ignored. If true, records with extra
columns are treated as bad records, and if there are too many bad records, an invalid error is
returned in the job result. By default unknown values are not allowed.ignoreUnknownValues in interface LoadConfigurationpublic List<String> projectionFields()
LoadConfigurationDATASTORE_BACKUP. Property names are case
sensitive and must be top-level properties. If no properties are specified, BigQuery loads
all properties. If any named property isn't found in the Cloud Datastore backup, an invalid
error is returned in the job result.projectionFields in interface LoadConfigurationpublic WriteChannelConfiguration.Builder toBuilder()
LoadConfigurationtoBuilder in interface LoadConfigurationpublic static WriteChannelConfiguration.Builder builder(TableId destinationTable)
public static WriteChannelConfiguration.Builder builder(TableId destinationTable, FormatOptions format)
public static WriteChannelConfiguration of(TableId destinationTable)
public static WriteChannelConfiguration of(TableId destinationTable, FormatOptions format)
Copyright © 2016 Google. All rights reserved.