public static final class WriteChannelConfiguration.Builder extends Object implements LoadConfiguration.Builder
| Modifier and Type | Method and Description |
|---|---|
WriteChannelConfiguration |
build() |
WriteChannelConfiguration.Builder |
createDisposition(JobInfo.CreateDisposition createDisposition)
Sets whether the job is allowed to create new tables.
|
WriteChannelConfiguration.Builder |
destinationTable(TableId destinationTable)
Sets the destination table to load the data into.
|
WriteChannelConfiguration.Builder |
formatOptions(FormatOptions formatOptions)
Sets the source format, and possibly some parsing options, of the external data.
|
WriteChannelConfiguration.Builder |
ignoreUnknownValues(Boolean ignoreUnknownValues)
Sets whether BigQuery should allow extra values that are not represented in the table schema.
|
WriteChannelConfiguration.Builder |
maxBadRecords(Integer maxBadRecords)
Sets the maximum number of bad records that BigQuery can ignore when running the job.
|
WriteChannelConfiguration.Builder |
projectionFields(List<String> projectionFields)
Sets which entity properties to load into BigQuery from a Cloud Datastore backup.
|
WriteChannelConfiguration.Builder |
schema(Schema schema)
Sets the schema for the destination table.
|
WriteChannelConfiguration.Builder |
writeDisposition(JobInfo.WriteDisposition writeDisposition)
Sets the action that should occur if the destination table already exists.
|
public WriteChannelConfiguration.Builder destinationTable(TableId destinationTable)
LoadConfiguration.BuilderdestinationTable in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder createDisposition(JobInfo.CreateDisposition createDisposition)
LoadConfiguration.BuildercreateDisposition in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder writeDisposition(JobInfo.WriteDisposition writeDisposition)
LoadConfiguration.BuilderwriteDisposition in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder formatOptions(FormatOptions formatOptions)
LoadConfiguration.BuilderCSV, NEWLINE_DELIMITED_JSON and DATASTORE_BACKUP. If not
specified, CSV format is assumed.
Source FormatformatOptions in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder maxBadRecords(Integer maxBadRecords)
LoadConfiguration.BuildermaxBadRecords in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder schema(Schema schema)
LoadConfiguration.BuilderDATASTORE_BACKUP format option).schema in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder ignoreUnknownValues(Boolean ignoreUnknownValues)
LoadConfiguration.Buildertrue, the extra values are ignored. If false, 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 LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder projectionFields(List<String> projectionFields)
LoadConfiguration.BuilderDATASTORE_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 LoadConfiguration.Builderpublic WriteChannelConfiguration build()
build in interface LoadConfiguration.BuilderCopyright © 2016 Google. All rights reserved.