public interface LoadConfiguration
WriteChannelConfiguration
) can be used to load data into a table with a
WriteChannel
(BigQuery.writer(WriteChannelConfiguration)
).
A load configuration (LoadJobConfiguration
) can also be used to create a load job
(JobInfo.of(JobConfiguration)
).Modifier and Type | Interface and Description |
---|---|
static interface |
LoadConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
getAutodetect()
[Experimental] Returns whether automatic inference of the options and schema for CSV and JSON sources is set.
|
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
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.
|
JobInfo.WriteDisposition |
getWriteDisposition()
Returns the action that should occur if the destination table already exists.
|
Boolean |
ignoreUnknownValues()
Returns whether BigQuery should allow extra values that are not represented in the table
schema.
|
LoadConfiguration.Builder |
toBuilder()
Returns a builder for the load configuration object.
|
TableId getDestinationTable()
EncryptionConfiguration getDestinationEncryptionConfiguration()
JobInfo.CreateDisposition getCreateDisposition()
JobInfo.WriteDisposition getWriteDisposition()
String getNullMarker()
CsvOptions getCsvOptions()
getFormat()
is set
to CSV). Returns null
if not set.Integer getMaxBadRecords()
Schema getSchema()
null
otherwise.String getFormat()
Boolean ignoreUnknownValues()
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.DatastoreBackupOptions getDatastoreBackupOptions()
List<JobInfo.SchemaUpdateOption> getSchemaUpdateOptions()
Boolean getAutodetect()
LoadConfiguration.Builder toBuilder()
Copyright © 2018 Google. All rights reserved.