public class ExternalTableDefinition extends TableDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
ExternalTableDefinition.Builder |
TableDefinition.Type| Modifier and Type | Method and Description |
|---|---|
static ExternalTableDefinition.Builder |
builder(List<String> sourceUris,
Schema schema,
FormatOptions format)
Creates a builder for an ExternalTableDefinition object.
|
static ExternalTableDefinition.Builder |
builder(String sourceUri,
Schema schema,
FormatOptions format)
Creates a builder for an ExternalTableDefinition object.
|
String |
compression()
Returns the compression type of the data source.
|
boolean |
equals(Object obj) |
<F extends FormatOptions> |
formatOptions()
Returns the source format, and possibly some parsing options, of the external data.
|
int |
hashCode() |
Boolean |
ignoreUnknownValues()
Returns whether BigQuery should allow extra values that are not represented in the table
schema.
|
Integer |
maxBadRecords()
Returns the maximum number of bad records that BigQuery can ignore when reading data.
|
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.
|
List<String> |
sourceUris()
Returns the fully-qualified URIs that point to your data in Google Cloud Storage.
|
ExternalTableDefinition.Builder |
toBuilder()
Returns a builder for the
ExternalTableDefinition object. |
schema, toString, typepublic String compression()
public Boolean ignoreUnknownValues()
formatOptions() determines what
BigQuery treats as an extra value.public Integer maxBadRecords()
public List<String> sourceUris()
public <F extends FormatOptions> F formatOptions()
CSV and NEWLINE_DELIMITED_JSON.public ExternalTableDefinition.Builder toBuilder()
ExternalTableDefinition object.toBuilder in class TableDefinitionpublic static ExternalTableDefinition.Builder builder(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 builder(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 © 2016 Google. All rights reserved.