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 |
---|---|
JobInfo.CreateDisposition |
createDisposition()
Deprecated.
|
CsvOptions |
csvOptions()
Deprecated.
|
TableId |
destinationTable()
Deprecated.
|
String |
format()
Deprecated.
|
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
format() is set
to CSV). |
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.
|
List<String> |
getProjectionFields()
Returns which entity properties to load into BigQuery from a Cloud Datastore backup.
|
Schema |
getSchema()
Returns the schema for the destination table, if set.
|
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.
|
Integer |
maxBadRecords()
Deprecated.
|
List<String> |
projectionFields()
Deprecated.
|
Schema |
schema()
Deprecated.
|
LoadConfiguration.Builder |
toBuilder()
Returns a builder for the load configuration object.
|
JobInfo.WriteDisposition |
writeDisposition()
Deprecated.
|
@Deprecated TableId destinationTable()
TableId getDestinationTable()
@Deprecated JobInfo.CreateDisposition createDisposition()
JobInfo.CreateDisposition getCreateDisposition()
@Deprecated JobInfo.WriteDisposition writeDisposition()
JobInfo.WriteDisposition getWriteDisposition()
@Deprecated CsvOptions csvOptions()
format()
is set
to CSV). Returns null
if not set.CsvOptions getCsvOptions()
format()
is set
to CSV). Returns null
if not set.@Deprecated Integer maxBadRecords()
Integer getMaxBadRecords()
@Deprecated Schema schema()
null
otherwise.Schema getSchema()
null
otherwise.@Deprecated String format()
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.@Deprecated List<String> projectionFields()
DATASTORE_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.List<String> getProjectionFields()
DATASTORE_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.LoadConfiguration.Builder toBuilder()
Copyright © 2017 Google. All rights reserved.