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 |
---|---|
static WriteChannelConfiguration.Builder |
builder(TableId destinationTable)
Deprecated.
|
static WriteChannelConfiguration.Builder |
builder(TableId destinationTable,
FormatOptions format)
Deprecated.
|
JobInfo.CreateDisposition |
createDisposition()
Deprecated.
|
CsvOptions |
csvOptions()
Deprecated.
|
TableId |
destinationTable()
Deprecated.
|
boolean |
equals(Object obj) |
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
LoadConfiguration.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.
|
int |
hashCode() |
Boolean |
ignoreUnknownValues()
Returns whether BigQuery should allow extra values that are not represented in the table
schema.
|
Integer |
maxBadRecords()
Deprecated.
|
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.
|
List<String> |
projectionFields()
Deprecated.
|
Schema |
schema()
Deprecated.
|
WriteChannelConfiguration.Builder |
toBuilder()
Returns a builder for the load configuration object.
|
String |
toString() |
JobInfo.WriteDisposition |
writeDisposition()
Deprecated.
|
protected WriteChannelConfiguration(WriteChannelConfiguration.Builder builder)
@Deprecated public TableId destinationTable()
LoadConfiguration
destinationTable
in interface LoadConfiguration
public TableId getDestinationTable()
LoadConfiguration
getDestinationTable
in interface LoadConfiguration
@Deprecated public JobInfo.CreateDisposition createDisposition()
LoadConfiguration
createDisposition
in interface LoadConfiguration
public JobInfo.CreateDisposition getCreateDisposition()
LoadConfiguration
getCreateDisposition
in interface LoadConfiguration
@Deprecated public JobInfo.WriteDisposition writeDisposition()
LoadConfiguration
writeDisposition
in interface LoadConfiguration
public JobInfo.WriteDisposition getWriteDisposition()
LoadConfiguration
getWriteDisposition
in interface LoadConfiguration
@Deprecated public CsvOptions csvOptions()
LoadConfiguration
LoadConfiguration.format()
is set
to CSV). Returns null
if not set.csvOptions
in interface LoadConfiguration
public CsvOptions getCsvOptions()
LoadConfiguration
LoadConfiguration.format()
is set
to CSV). Returns null
if not set.getCsvOptions
in interface LoadConfiguration
@Deprecated public Integer maxBadRecords()
LoadConfiguration
maxBadRecords
in interface LoadConfiguration
public Integer getMaxBadRecords()
LoadConfiguration
getMaxBadRecords
in interface LoadConfiguration
@Deprecated public Schema schema()
LoadConfiguration
null
otherwise.schema
in interface LoadConfiguration
public Schema getSchema()
LoadConfiguration
null
otherwise.getSchema
in interface LoadConfiguration
@Deprecated public String format()
LoadConfiguration
format
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
@Deprecated public List<String> projectionFields()
LoadConfiguration
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.projectionFields
in interface LoadConfiguration
public List<String> getProjectionFields()
LoadConfiguration
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.getProjectionFields
in interface LoadConfiguration
public WriteChannelConfiguration.Builder toBuilder()
LoadConfiguration
toBuilder
in interface LoadConfiguration
@Deprecated public static WriteChannelConfiguration.Builder builder(TableId destinationTable)
public static WriteChannelConfiguration.Builder newBuilder(TableId destinationTable)
@Deprecated public static WriteChannelConfiguration.Builder builder(TableId destinationTable, FormatOptions format)
public static WriteChannelConfiguration.Builder newBuilder(TableId destinationTable, FormatOptions format)
public static WriteChannelConfiguration of(TableId destinationTable)
public static WriteChannelConfiguration of(TableId destinationTable, FormatOptions format)
Copyright © 2016 Google. All rights reserved.