public final class LoadJobConfiguration extends JobConfiguration implements LoadConfiguration
JobConfiguration.Type.LOAD
type.Modifier and Type | Class and Description |
---|---|
static class |
LoadJobConfiguration.Builder |
JobConfiguration.Type
Modifier and Type | Method and Description |
---|---|
static LoadJobConfiguration.Builder |
builder(TableId destinationTable,
String sourceUri)
Creates a builder for a BigQuery Load Job configuration given the destination table and source
URI.
|
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.
|
Long |
getJobTimeoutMs()
Returns the timeout associated with this job
|
Map<String,String> |
getLabels()
Returns the labels associated with this job
|
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.
|
RangePartitioning |
getRangePartitioning()
Returns the range partitioning specification for the table
|
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.
|
List<String> |
getSourceUris()
Returns the fully-qualified URIs that point to source data in Google Cloud Storage (e.g.
|
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 LoadJobConfiguration.Builder |
newBuilder(TableId destinationTable,
List<String> sourceUris)
Creates a builder for a BigQuery Load Job configuration given the destination table and source
URIs.
|
static LoadJobConfiguration.Builder |
newBuilder(TableId destinationTable,
List<String> sourceUris,
FormatOptions format)
Creates a builder for a BigQuery Load Job configuration given the destination table, format and
source URIs.
|
static LoadJobConfiguration.Builder |
newBuilder(TableId destinationTable,
String sourceUri)
Creates a builder for a BigQuery Load Job configuration given the destination table and source
URI.
|
static LoadJobConfiguration.Builder |
newBuilder(TableId destinationTable,
String sourceUri,
FormatOptions format)
Creates a builder for a BigQuery Load Job configuration given the destination table, format and
source URI.
|
static LoadJobConfiguration |
of(TableId destinationTable,
List<String> sourceUris)
Returns a BigQuery Load Job Configuration for the given destination table and source URIs.
|
static LoadJobConfiguration |
of(TableId destinationTable,
List<String> sourceUris,
FormatOptions format)
Returns a BigQuery Load Job Configuration for the given destination table, format and source
URI.
|
static LoadJobConfiguration |
of(TableId destinationTable,
String sourceUri)
Returns a BigQuery Load Job Configuration for the given destination table and source URI.
|
static LoadJobConfiguration |
of(TableId destinationTable,
String sourceUri,
FormatOptions format)
Returns a BigQuery Load Job Configuration for the given destination table, format and source
URI.
|
LoadJobConfiguration.Builder |
toBuilder()
Returns a builder for the object.
|
getType, toString
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 DatastoreBackupOptions getDatastoreBackupOptions()
LoadConfiguration
getDatastoreBackupOptions
in interface LoadConfiguration
public String getFormat()
LoadConfiguration
getFormat
in interface LoadConfiguration
public Integer getMaxBadRecords()
LoadConfiguration
getMaxBadRecords
in interface LoadConfiguration
public Schema getSchema()
LoadConfiguration
null
otherwise.getSchema
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 List<String> getSourceUris()
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<JobInfo.SchemaUpdateOption> getSchemaUpdateOptions()
LoadConfiguration
getSchemaUpdateOptions
in interface LoadConfiguration
public Long getJobTimeoutMs()
public RangePartitioning getRangePartitioning()
public LoadJobConfiguration.Builder toBuilder()
JobConfiguration
toBuilder
in interface LoadConfiguration
toBuilder
in class JobConfiguration
public static LoadJobConfiguration.Builder newBuilder(TableId destinationTable, List<String> sourceUris)
public static LoadJobConfiguration.Builder builder(TableId destinationTable, String sourceUri)
public static LoadJobConfiguration.Builder newBuilder(TableId destinationTable, String sourceUri)
public static LoadJobConfiguration.Builder newBuilder(TableId destinationTable, List<String> sourceUris, FormatOptions format)
public static LoadJobConfiguration.Builder newBuilder(TableId destinationTable, String sourceUri, FormatOptions format)
public static LoadJobConfiguration of(TableId destinationTable, List<String> sourceUris)
public static LoadJobConfiguration of(TableId destinationTable, String sourceUri)
public static LoadJobConfiguration of(TableId destinationTable, List<String> sourceUris, FormatOptions format)
public static LoadJobConfiguration of(TableId destinationTable, String sourceUri, FormatOptions format)
Copyright © 2019 Google LLC. All rights reserved.