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, toStringpublic TableId getDestinationTable()
LoadConfigurationgetDestinationTable in interface LoadConfigurationpublic EncryptionConfiguration getDestinationEncryptionConfiguration()
getDestinationEncryptionConfiguration in interface LoadConfigurationpublic JobInfo.CreateDisposition getCreateDisposition()
LoadConfigurationgetCreateDisposition in interface LoadConfigurationpublic JobInfo.WriteDisposition getWriteDisposition()
LoadConfigurationgetWriteDisposition in interface LoadConfigurationpublic String getNullMarker()
LoadConfigurationgetNullMarker in interface LoadConfigurationpublic CsvOptions getCsvOptions()
LoadConfigurationLoadConfiguration.getFormat() is set to
CSV). Returns null if not set.getCsvOptions in interface LoadConfigurationpublic DatastoreBackupOptions getDatastoreBackupOptions()
LoadConfigurationgetDatastoreBackupOptions in interface LoadConfigurationpublic String getFormat()
LoadConfigurationgetFormat in interface LoadConfigurationpublic Integer getMaxBadRecords()
LoadConfigurationgetMaxBadRecords in interface LoadConfigurationpublic Schema getSchema()
LoadConfigurationnull otherwise.getSchema in interface LoadConfigurationpublic Boolean ignoreUnknownValues()
LoadConfigurationtrue, 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 LoadConfigurationpublic List<String> getSourceUris()
public Boolean getAutodetect()
LoadConfigurationgetAutodetect in interface LoadConfigurationpublic TimePartitioning getTimePartitioning()
LoadConfigurationgetTimePartitioning in interface LoadConfigurationpublic Clustering getClustering()
LoadConfigurationgetClustering in interface LoadConfigurationpublic Boolean getUseAvroLogicalTypes()
LoadConfigurationgetUseAvroLogicalTypes in interface LoadConfigurationpublic List<JobInfo.SchemaUpdateOption> getSchemaUpdateOptions()
LoadConfigurationgetSchemaUpdateOptions in interface LoadConfigurationpublic Long getJobTimeoutMs()
public RangePartitioning getRangePartitioning()
public LoadJobConfiguration.Builder toBuilder()
JobConfigurationtoBuilder in interface LoadConfigurationtoBuilder in class JobConfigurationpublic 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.