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 |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getAutodetect()
[Experimental] Returns whether automatic inference of the options and schema for CSV and JSON
sources is set.
|
Clustering |
getClustering()
Returns the clustering specification for the definition table.
|
JobInfo.CreateDisposition |
getCreateDisposition()
Returns whether the job is allowed to create new tables.
|
CsvOptions |
getCsvOptions()
Returns additional properties used to parse CSV data (used when
LoadConfiguration.getFormat() is set to
CSV). |
DatastoreBackupOptions |
getDatastoreBackupOptions()
Returns additional options used to load from a Cloud datastore backup.
|
EncryptionConfiguration |
getDestinationEncryptionConfiguration() |
TableId |
getDestinationTable()
Returns the destination table to load the data into.
|
String |
getFormat()
Returns the format of the data files.
|
Integer |
getMaxBadRecords()
Returns the maximum number of bad records that BigQuery can ignore when running the job.
|
String |
getNullMarker()
Returns the string that represents a null value in a CSV file.
|
Schema |
getSchema()
Returns the schema for the destination table, if set.
|
List<JobInfo.SchemaUpdateOption> |
getSchemaUpdateOptions()
[Experimental] Returns options allowing the schema of the destination table to be updated as a
side effect of the load job.
|
TimePartitioning |
getTimePartitioning()
Returns the time partitioning specification defined for the destination table.
|
Boolean |
getUseAvroLogicalTypes()
Returns True/False.
|
JobInfo.WriteDisposition |
getWriteDisposition()
Returns the action that should occur if the destination table already exists.
|
int |
hashCode() |
Boolean |
ignoreUnknownValues()
Returns whether BigQuery should allow extra values that are not represented in the table
schema.
|
static WriteChannelConfiguration.Builder |
newBuilder(TableId destinationTable)
Creates a builder for a BigQuery Load Configuration given the destination table.
|
static WriteChannelConfiguration.Builder |
newBuilder(TableId destinationTable,
FormatOptions format)
Creates a builder for a BigQuery Load Configuration given the destination table and format.
|
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.
|
WriteChannelConfiguration.Builder |
toBuilder()
Returns a builder for the load configuration object.
|
String |
toString() |
protected WriteChannelConfiguration(WriteChannelConfiguration.Builder builder)
public TableId getDestinationTable()
LoadConfigurationgetDestinationTable in interface LoadConfigurationpublic EncryptionConfiguration getDestinationEncryptionConfiguration()
getDestinationEncryptionConfiguration in interface LoadConfigurationpublic JobInfo.CreateDisposition getCreateDisposition()
LoadConfigurationgetCreateDisposition in interface LoadConfigurationpublic JobInfo.WriteDisposition getWriteDisposition()
LoadConfigurationgetWriteDisposition in interface LoadConfigurationpublic String getNullMarker()
LoadConfigurationgetNullMarker in interface LoadConfigurationpublic CsvOptions getCsvOptions()
LoadConfigurationLoadConfiguration.getFormat() is set to
CSV). Returns null if not set.getCsvOptions in interface LoadConfigurationpublic Integer getMaxBadRecords()
LoadConfigurationgetMaxBadRecords in interface LoadConfigurationpublic Schema getSchema()
LoadConfigurationnull otherwise.getSchema in interface LoadConfigurationpublic String getFormat()
LoadConfigurationgetFormat 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 DatastoreBackupOptions getDatastoreBackupOptions()
LoadConfigurationgetDatastoreBackupOptions in interface LoadConfigurationpublic List<JobInfo.SchemaUpdateOption> getSchemaUpdateOptions()
LoadConfigurationgetSchemaUpdateOptions in interface LoadConfigurationpublic Boolean getAutodetect()
LoadConfigurationgetAutodetect in interface LoadConfigurationpublic TimePartitioning getTimePartitioning()
LoadConfigurationgetTimePartitioning in interface LoadConfigurationpublic Clustering getClustering()
LoadConfigurationgetClustering in interface LoadConfigurationpublic Boolean getUseAvroLogicalTypes()
LoadConfigurationgetUseAvroLogicalTypes in interface LoadConfigurationpublic WriteChannelConfiguration.Builder toBuilder()
LoadConfigurationtoBuilder in interface LoadConfigurationpublic static WriteChannelConfiguration.Builder newBuilder(TableId destinationTable)
public static WriteChannelConfiguration.Builder newBuilder(TableId destinationTable, FormatOptions format)
public static WriteChannelConfiguration of(TableId destinationTable)
public static WriteChannelConfiguration of(TableId destinationTable, FormatOptions format)
Copyright © 2019 Google LLC. All rights reserved.