public class ExternalTableDefinition extends TableDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
ExternalTableDefinition.Builder |
TableDefinition.Type| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getAutodetect()
[Experimental] Returns whether automatic detection of schema and format options should be performed.
|
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.
|
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.
|
int |
hashCode() |
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,
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,
Schema schema,
FormatOptions format)
Creates an ExternalTableDefinition object.
|
ExternalTableDefinition.Builder |
toBuilder()
Returns a builder for the
ExternalTableDefinition object. |
getSchema, getType, toStringpublic String getCompression()
public Boolean ignoreUnknownValues()
getFormatOptions() determines what
BigQuery treats as an extra value.public Integer getMaxBadRecords()
public List<String> getSourceUris()
public <F extends FormatOptions> F getFormatOptions()
CSV and NEWLINE_DELIMITED_JSON.public Boolean getAutodetect()
public ExternalTableDefinition.Builder toBuilder()
ExternalTableDefinition object.toBuilder in class TableDefinitionpublic 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 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 dataCopyright © 2017 Google. All rights reserved.