public class BigQueryHelpers
extends java.lang.Object
BigQueryIO
.Constructor and Description |
---|
BigQueryHelpers() |
Modifier and Type | Method and Description |
---|---|
static TableReference |
parseTableSpec(java.lang.String tableSpec)
Parse a table specification in the form
"[project_id]:[dataset_id].[table_id]" or
"[dataset_id].[table_id]" . |
static java.lang.String |
stripPartitionDecorator(java.lang.String tableSpec)
Strip off any partition decorator information from a tablespec.
|
static java.lang.String |
toTableSpec(TableReference ref)
Returns a canonical string representation of the
TableReference . |
static java.lang.String |
toTableSpec(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference ref)
Returns a canonical string representation of a
TableReferenceProto.TableReference . |
public static java.lang.String toTableSpec(TableReference ref)
TableReference
.public static java.lang.String toTableSpec(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference ref)
TableReferenceProto.TableReference
.public static TableReference parseTableSpec(java.lang.String tableSpec)
"[project_id]:[dataset_id].[table_id]"
or
"[dataset_id].[table_id]"
.
If the project id is omitted, the default project id is used.
public static java.lang.String stripPartitionDecorator(java.lang.String tableSpec)