@Experimental(value=SOURCE_SINK)
public class BigQueryStorageTableSource<T>
extends org.apache.beam.sdk.io.BoundedSource<T>
Source representing reading from a table.| Modifier and Type | Method and Description |
|---|---|
static <T> BigQueryStorageTableSource<T> |
create(org.apache.beam.sdk.options.ValueProvider<com.google.api.services.bigquery.model.TableReference> tableRefProvider,
com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions readOptions,
org.apache.beam.sdk.transforms.SerializableFunction<SchemaAndRecord,T> parseFn,
org.apache.beam.sdk.coders.Coder<T> outputCoder,
BigQueryServices bqServices) |
org.apache.beam.sdk.io.BoundedSource.BoundedReader<T> |
createReader(org.apache.beam.sdk.options.PipelineOptions options) |
long |
getEstimatedSizeBytes(org.apache.beam.sdk.options.PipelineOptions options) |
org.apache.beam.sdk.coders.Coder<T> |
getOutputCoder() |
void |
populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder) |
java.util.List<BigQueryStorageStreamSource<T>> |
split(long desiredBundleSizeBytes,
org.apache.beam.sdk.options.PipelineOptions options) |
public static <T> BigQueryStorageTableSource<T> create(org.apache.beam.sdk.options.ValueProvider<com.google.api.services.bigquery.model.TableReference> tableRefProvider, @Nullable com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions readOptions, org.apache.beam.sdk.transforms.SerializableFunction<SchemaAndRecord,T> parseFn, org.apache.beam.sdk.coders.Coder<T> outputCoder, BigQueryServices bqServices)
public org.apache.beam.sdk.coders.Coder<T> getOutputCoder()
getOutputCoder in class org.apache.beam.sdk.io.Source<T>public void populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
populateDisplayData in interface org.apache.beam.sdk.transforms.display.HasDisplayDatapopulateDisplayData in class org.apache.beam.sdk.io.Source<T>public long getEstimatedSizeBytes(org.apache.beam.sdk.options.PipelineOptions options)
throws java.lang.Exception
getEstimatedSizeBytes in class org.apache.beam.sdk.io.BoundedSource<T>java.lang.Exceptionpublic java.util.List<BigQueryStorageStreamSource<T>> split(long desiredBundleSizeBytes, org.apache.beam.sdk.options.PipelineOptions options) throws java.lang.Exception
split in class org.apache.beam.sdk.io.BoundedSource<T>java.lang.Exception