public abstract static class BigQueryIO.TypedRead<T>
extends <any>
BigQueryIO.read(SerializableFunction).| Modifier and Type | Class and Description |
|---|---|
static class |
BigQueryIO.TypedRead.Method
Determines the method used to read data from BigQuery.
|
static class |
BigQueryIO.TypedRead.QueryPriority
An enumeration type for the priority of a query.
|
| Constructor and Description |
|---|
TypedRead() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<T> |
expand(org.apache.beam.sdk.values.PBegin input) |
BigQueryIO.TypedRead<T> |
from(java.lang.String tableSpec)
|
BigQueryIO.TypedRead<T> |
from(com.google.api.services.bigquery.model.TableReference table)
|
BigQueryIO.TypedRead<T> |
from(org.apache.beam.sdk.options.ValueProvider<java.lang.String> tableSpec)
|
BigQueryIO.TypedRead<T> |
fromQuery(java.lang.String query)
|
BigQueryIO.TypedRead<T> |
fromQuery(org.apache.beam.sdk.options.ValueProvider<java.lang.String> query)
|
com.google.api.services.bigquery.model.TableReference |
getTable()
|
org.apache.beam.sdk.options.ValueProvider<com.google.api.services.bigquery.model.TableReference> |
getTableProvider()
|
void |
populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder) |
BigQueryIO.TypedRead<T> |
usingStandardSql()
|
void |
validate(org.apache.beam.sdk.options.PipelineOptions options) |
BigQueryIO.TypedRead<T> |
withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
Sets a
Coder for the result of the parse function. |
BigQueryIO.TypedRead<T> |
withKmsKey(java.lang.String kmsKey)
For query sources, use this Cloud KMS key to encrypt any temporary tables created.
|
BigQueryIO.TypedRead<T> |
withMethod(BigQueryIO.TypedRead.Method method)
|
BigQueryIO.TypedRead<T> |
withoutResultFlattening()
|
BigQueryIO.TypedRead<T> |
withoutValidation()
|
BigQueryIO.TypedRead<T> |
withQueryLocation(java.lang.String location)
BigQuery geographic location where the query job will be
executed.
|
BigQueryIO.TypedRead<T> |
withQueryPriority(BigQueryIO.TypedRead.QueryPriority priority)
|
BigQueryIO.TypedRead<T> |
withReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions readOptions)
Read options, including a list of selected columns and push-down SQL filter text.
|
BigQueryIO.TypedRead<T> |
withTemplateCompatibility() |
public void validate(org.apache.beam.sdk.options.PipelineOptions options)
public org.apache.beam.sdk.values.PCollection<T> expand(org.apache.beam.sdk.values.PBegin input)
public void populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
@Nullable public org.apache.beam.sdk.options.ValueProvider<com.google.api.services.bigquery.model.TableReference> getTableProvider()
@Nullable public com.google.api.services.bigquery.model.TableReference getTable()
public BigQueryIO.TypedRead<T> withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
Coder for the result of the parse function. This may be required if a coder
can not be inferred automatically.public BigQueryIO.TypedRead<T> withKmsKey(java.lang.String kmsKey)
public BigQueryIO.TypedRead<T> from(java.lang.String tableSpec)
public BigQueryIO.TypedRead<T> from(org.apache.beam.sdk.options.ValueProvider<java.lang.String> tableSpec)
public BigQueryIO.TypedRead<T> fromQuery(java.lang.String query)
public BigQueryIO.TypedRead<T> fromQuery(org.apache.beam.sdk.options.ValueProvider<java.lang.String> query)
public BigQueryIO.TypedRead<T> from(com.google.api.services.bigquery.model.TableReference table)
public BigQueryIO.TypedRead<T> withoutValidation()
public BigQueryIO.TypedRead<T> withoutResultFlattening()
public BigQueryIO.TypedRead<T> usingStandardSql()
public BigQueryIO.TypedRead<T> withQueryPriority(BigQueryIO.TypedRead.QueryPriority priority)
public BigQueryIO.TypedRead<T> withQueryLocation(java.lang.String location)
@Experimental(value=SOURCE_SINK) public BigQueryIO.TypedRead<T> withMethod(BigQueryIO.TypedRead.Method method)
@Experimental(value=SOURCE_SINK) public BigQueryIO.TypedRead<T> withReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions readOptions)
@Experimental(value=SOURCE_SINK) public BigQueryIO.TypedRead<T> withTemplateCompatibility()