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.
|
List<ConnectionProperty> |
getConnectionProperties() |
JobInfo.CreateDisposition |
getCreateDisposition()
Returns whether the job is allowed to create new tables.
|
Boolean |
getCreateSession() |
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.
|
List<String> |
getDecimalTargetTypes()
Returns the list of possible SQL data types to which the source decimal values are converted.
|
EncryptionConfiguration |
getDestinationEncryptionConfiguration() |
TableId |
getDestinationTable()
Returns the destination table to load the data into.
|
String |
getFormat()
Returns the format of the data files.
|
Map<String,String> |
getLabels() |
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()
LoadConfiguration
getDestinationTable
in interface LoadConfiguration
public EncryptionConfiguration getDestinationEncryptionConfiguration()
getDestinationEncryptionConfiguration
in interface LoadConfiguration
public JobInfo.CreateDisposition getCreateDisposition()
LoadConfiguration
getCreateDisposition
in interface LoadConfiguration
public JobInfo.WriteDisposition getWriteDisposition()
LoadConfiguration
getWriteDisposition
in interface LoadConfiguration
public String getNullMarker()
LoadConfiguration
getNullMarker
in interface LoadConfiguration
public CsvOptions getCsvOptions()
LoadConfiguration
LoadConfiguration.getFormat()
is set to
CSV). Returns null
if not set.getCsvOptions
in interface LoadConfiguration
public Integer getMaxBadRecords()
LoadConfiguration
getMaxBadRecords
in interface LoadConfiguration
public Schema getSchema()
LoadConfiguration
null
otherwise.getSchema
in interface LoadConfiguration
public String getFormat()
LoadConfiguration
getFormat
in interface LoadConfiguration
public Boolean ignoreUnknownValues()
LoadConfiguration
true
, 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 LoadConfiguration
public DatastoreBackupOptions getDatastoreBackupOptions()
LoadConfiguration
getDatastoreBackupOptions
in interface LoadConfiguration
public List<JobInfo.SchemaUpdateOption> getSchemaUpdateOptions()
LoadConfiguration
getSchemaUpdateOptions
in interface LoadConfiguration
public Boolean getAutodetect()
LoadConfiguration
getAutodetect
in interface LoadConfiguration
public TimePartitioning getTimePartitioning()
LoadConfiguration
getTimePartitioning
in interface LoadConfiguration
public Clustering getClustering()
LoadConfiguration
getClustering
in interface LoadConfiguration
public Boolean getUseAvroLogicalTypes()
LoadConfiguration
getUseAvroLogicalTypes
in interface LoadConfiguration
public List<String> getDecimalTargetTypes()
LoadConfiguration
getDecimalTargetTypes
in interface LoadConfiguration
public List<ConnectionProperty> getConnectionProperties()
public Boolean getCreateSession()
public WriteChannelConfiguration.Builder toBuilder()
LoadConfiguration
toBuilder
in interface LoadConfiguration
public 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 © 2023 Google LLC. All rights reserved.