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)
Deprecated.
|
static ExternalTableDefinition.Builder |
builder(String sourceUri,
Schema schema,
FormatOptions format)
Deprecated.
|
String |
compression()
Deprecated.
|
boolean |
equals(Object obj) |
<F extends FormatOptions> |
formatOptions()
Deprecated.
|
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.
|
Integer |
maxBadRecords()
Deprecated.
|
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.
|
List<String> |
sourceUris()
Deprecated.
|
ExternalTableDefinition.Builder |
toBuilder()
Returns a builder for the
ExternalTableDefinition object. |
@Deprecated public String compression()
public String getCompression()
public Boolean ignoreUnknownValues()
formatOptions()
determines what
BigQuery treats as an extra value.@Deprecated public Integer maxBadRecords()
public Integer getMaxBadRecords()
@Deprecated public List<String> sourceUris()
public List<String> getSourceUris()
@Deprecated public <F extends FormatOptions> F formatOptions()
CSV
and NEWLINE_DELIMITED_JSON
.public <F extends FormatOptions> F getFormatOptions()
CSV
and NEWLINE_DELIMITED_JSON
.public ExternalTableDefinition.Builder toBuilder()
ExternalTableDefinition
object.toBuilder
in class TableDefinition
@Deprecated public 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 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 data@Deprecated public 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.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 © 2016 Google. All rights reserved.