public static final class WriteChannelConfiguration.Builder extends Object implements LoadConfiguration.Builder
| Modifier and Type | Method and Description |
|---|---|
WriteChannelConfiguration |
build() |
WriteChannelConfiguration.Builder |
setAutodetect(Boolean autodetect)
[Experimental] Sets automatic inference of the options and schema for CSV and JSON sources.
|
WriteChannelConfiguration.Builder |
setClustering(Clustering clustering)
Sets the clustering specification for the destination table.
|
WriteChannelConfiguration.Builder |
setCreateDisposition(JobInfo.CreateDisposition createDisposition)
Sets whether the job is allowed to create new tables.
|
LoadConfiguration.Builder |
setDestinationEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration) |
WriteChannelConfiguration.Builder |
setDestinationTable(TableId destinationTable)
Sets the destination table to load the data into.
|
WriteChannelConfiguration.Builder |
setFormatOptions(FormatOptions formatOptions)
Sets the source format, and possibly some parsing options, of the external data.
|
WriteChannelConfiguration.Builder |
setIgnoreUnknownValues(Boolean ignoreUnknownValues)
Sets whether BigQuery should allow extra values that are not represented in the table schema.
|
WriteChannelConfiguration.Builder |
setMaxBadRecords(Integer maxBadRecords)
Sets the maximum number of bad records that BigQuery can ignore when running the job.
|
WriteChannelConfiguration.Builder |
setNullMarker(String nullMarker)
Sets the string that represents a null value in a CSV file.
|
WriteChannelConfiguration.Builder |
setSchema(Schema schema)
Sets the schema for the destination table.
|
WriteChannelConfiguration.Builder |
setSchemaUpdateOptions(List<JobInfo.SchemaUpdateOption> schemaUpdateOptions)
[Experimental] Sets options allowing the schema of the destination table to be updated as a
side effect of the load job.
|
WriteChannelConfiguration.Builder |
setTimePartitioning(TimePartitioning timePartitioning)
Sets the time partitioning specification for the destination table.
|
WriteChannelConfiguration.Builder |
setUseAvroLogicalTypes(Boolean useAvroLogicalTypes)
If FormatOptions is set to AVRO, you can interpret logical types into their corresponding
types (such as TIMESTAMP) instead of only using their raw types (such as INTEGER).
|
WriteChannelConfiguration.Builder |
setWriteDisposition(JobInfo.WriteDisposition writeDisposition)
Sets the action that should occur if the destination table already exists.
|
public WriteChannelConfiguration.Builder setDestinationTable(TableId destinationTable)
LoadConfiguration.BuildersetDestinationTable in interface LoadConfiguration.Builderpublic LoadConfiguration.Builder setDestinationEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
setDestinationEncryptionConfiguration in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setCreateDisposition(JobInfo.CreateDisposition createDisposition)
LoadConfiguration.BuildersetCreateDisposition in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setWriteDisposition(JobInfo.WriteDisposition writeDisposition)
LoadConfiguration.BuildersetWriteDisposition in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setFormatOptions(FormatOptions formatOptions)
LoadConfiguration.BuilderCSV, NEWLINE_DELIMITED_JSON and DATASTORE_BACKUP. If not
specified, CSV format is assumed.
setFormatOptions in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setNullMarker(String nullMarker)
LoadConfiguration.BuilderSTRING and BYTE. For
STRING and BYTE columns, BigQuery interprets the empty string as an empty
value.setNullMarker in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setMaxBadRecords(Integer maxBadRecords)
LoadConfiguration.BuildersetMaxBadRecords in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setSchema(Schema schema)
LoadConfiguration.BuilderDATASTORE_BACKUP format option).setSchema in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setIgnoreUnknownValues(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.setIgnoreUnknownValues in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setSchemaUpdateOptions(List<JobInfo.SchemaUpdateOption> schemaUpdateOptions)
LoadConfiguration.BuildersetSchemaUpdateOptions in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setAutodetect(Boolean autodetect)
LoadConfiguration.BuildersetAutodetect in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setTimePartitioning(TimePartitioning timePartitioning)
LoadConfiguration.BuildersetTimePartitioning in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setClustering(Clustering clustering)
LoadConfiguration.BuildersetClustering in interface LoadConfiguration.Builderpublic WriteChannelConfiguration.Builder setUseAvroLogicalTypes(Boolean useAvroLogicalTypes)
LoadConfiguration.Buildernull.setUseAvroLogicalTypes in interface LoadConfiguration.Builderpublic WriteChannelConfiguration build()
build in interface LoadConfiguration.BuilderCopyright © 2019 Google LLC. All rights reserved.