public abstract class ExternalTableDefinition extends TableDefinition
Modifier and Type | Class and Description |
---|---|
static class |
ExternalTableDefinition.Builder |
TableDefinition.Type
Constructor and Description |
---|
ExternalTableDefinition() |
Modifier and Type | Method and Description |
---|---|
abstract Boolean |
getAutodetect()
[Experimental] Returns whether automatic detection of schema and format options should be
performed.
|
abstract String |
getCompression()
Returns the compression type of the data source.
|
<F extends FormatOptions> |
getFormatOptions()
Returns the source format, and possibly some parsing options, of the external data.
|
abstract Boolean |
getIgnoreUnknownValues() |
abstract Integer |
getMaxBadRecords()
Returns the maximum number of bad records that BigQuery can ignore when reading data.
|
List<String> |
getSourceUris()
Returns the fully-qualified URIs that point to your data in Google Cloud Storage.
|
abstract com.google.common.collect.ImmutableList<String> |
getSourceUrisImmut() |
Boolean |
ignoreUnknownValues()
Returns whether BigQuery should allow extra values that are not represented in the table
schema.
|
static ExternalTableDefinition.Builder |
newBuilder(List<String> sourceUris,
Schema schema,
FormatOptions format)
Creates a builder for an ExternalTableDefinition object.
|
static ExternalTableDefinition.Builder |
newBuilder(String sourceUri,
FormatOptions format)
Creates a builder for an ExternalTableDefinition object.
|
static ExternalTableDefinition.Builder |
newBuilder(String sourceUri,
Schema schema,
FormatOptions format)
Creates a builder for an ExternalTableDefinition object.
|
static ExternalTableDefinition |
of(List<String> sourceUris,
Schema schema,
FormatOptions format)
Creates an ExternalTableDefinition object.
|
static ExternalTableDefinition |
of(String sourceUri,
FormatOptions format)
Creates a builder for an ExternalTableDefinition object.
|
static ExternalTableDefinition |
of(String sourceUri,
Schema schema,
FormatOptions format)
Creates an ExternalTableDefinition object.
|
abstract ExternalTableDefinition.Builder |
toBuilder()
Returns a builder for the
ExternalTableDefinition object. |
getSchema, getType
@Nullable public abstract String getCompression()
@Nullable public Boolean ignoreUnknownValues()
getFormatOptions()
determines what
BigQuery treats as an extra value.@Nullable public abstract Integer getMaxBadRecords()
@Nullable public List<String> getSourceUris()
@Nullable public abstract com.google.common.collect.ImmutableList<String> getSourceUrisImmut()
@Nullable public <F extends FormatOptions> F getFormatOptions()
CSV
and NEWLINE_DELIMITED_JSON
.@Nullable public abstract Boolean getAutodetect()
public abstract ExternalTableDefinition.Builder toBuilder()
ExternalTableDefinition
object.toBuilder
in class TableDefinition
public static ExternalTableDefinition.Builder newBuilder(List<String> sourceUris, Schema schema, FormatOptions format)
sourceUris
- the fully-qualified URIs that point to your data in Google Cloud Storage.
Each URI can contain one '*' wildcard character that must come after the bucket's name.
Size limits related to load jobs apply to external data sources, plus an additional limit
of 10 GB maximum size across all URIs.schema
- the schema for the external dataformat
- the source format of the external datapublic static ExternalTableDefinition.Builder newBuilder(String sourceUri, Schema schema, FormatOptions format)
sourceUri
- a fully-qualified URI that points to your data in Google Cloud Storage. The
URI can contain one '*' wildcard character that must come after the bucket's name. Size
limits related to load jobs apply to external data sources.schema
- the schema for the external dataformat
- the source format of the external datapublic static ExternalTableDefinition.Builder newBuilder(String sourceUri, FormatOptions format)
sourceUri
- the fully-qualified URIs that point to your data in Google Cloud. For Google
Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and
valid HTTPS URL for a Google Cloud Bigtable table. Size limits related to load jobs apply
to external data sources, plus an additional limit of 10 GB maximum size across all URIs.format
- the source format of the external datapublic static ExternalTableDefinition of(List<String> sourceUris, Schema schema, FormatOptions format)
sourceUris
- the fully-qualified URIs that point to your data in Google Cloud Storage.
Each URI can contain one '*' wildcard character that must come after the bucket's name.
Size limits related to load jobs apply to external data sources, plus an additional limit
of 10 GB maximum size across all URIs.schema
- the schema for the external dataformat
- the source format of the external datapublic static ExternalTableDefinition of(String sourceUri, Schema schema, FormatOptions format)
sourceUri
- a fully-qualified URI that points to your data in Google Cloud Storage. The
URI can contain one '*' wildcard character that must come after the bucket's name. Size
limits related to load jobs apply to external data sources.schema
- the schema for the external dataformat
- the source format of the external datapublic static ExternalTableDefinition of(String sourceUri, FormatOptions format)
sourceUri
- the fully-qualified URIs that point to your data in Google Cloud. For Google
Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and
valid HTTPS URL for a Google Cloud Bigtable table. Size limits related to load jobs apply
to external data sources, plus an additional limit of 10 GB maximum size across all URIs.format
- the source format of the external dataCopyright © 2019 Google LLC. All rights reserved.