Class BigQueryServicesImpl
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.bigquery.BigQueryServicesImpl
-
- All Implemented Interfaces:
java.io.Serializable,BigQueryServices
public class BigQueryServicesImpl extends java.lang.Object implements BigQueryServices
An implementation ofBigQueryServicesthat actually communicates with the cloud BigQuery service.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBigQueryServicesImpl.DatasetServiceImplstatic classBigQueryServicesImpl.WriteStreamServiceImpl-
Nested classes/interfaces inherited from interface org.apache.beam.sdk.io.gcp.bigquery.BigQueryServices
BigQueryServices.BigQueryServerStream<T>, BigQueryServices.DatasetService, BigQueryServices.JobService, BigQueryServices.StorageClient, BigQueryServices.StreamAppendClient, BigQueryServices.WriteStreamService
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map<java.lang.String,java.lang.String>API_METRIC_LABEL
-
Constructor Summary
Constructors Constructor Description BigQueryServicesImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.beam.sdk.extensions.gcp.util.CustomHttpErrorscreateBigQueryClientCustomErrors()BigQueryServices.DatasetServicegetDatasetService(BigQueryOptions options)Returns a real, mock, or fakeBigQueryServices.DatasetService.BigQueryServices.JobServicegetJobService(BigQueryOptions options)Returns a real, mock, or fakeBigQueryServices.JobService.BigQueryServices.StorageClientgetStorageClient(BigQueryOptions options)Returns a real, mock, or fakeBigQueryServices.StorageClient.BigQueryServices.WriteStreamServicegetWriteStreamService(BigQueryOptions options)Returns a real, mock, or fakeBigQueryServices.WriteStreamService.
-
-
-
Method Detail
-
getJobService
public BigQueryServices.JobService getJobService(BigQueryOptions options)
Description copied from interface:BigQueryServicesReturns a real, mock, or fakeBigQueryServices.JobService.- Specified by:
getJobServicein interfaceBigQueryServices
-
getDatasetService
public BigQueryServices.DatasetService getDatasetService(BigQueryOptions options)
Description copied from interface:BigQueryServicesReturns a real, mock, or fakeBigQueryServices.DatasetService.- Specified by:
getDatasetServicein interfaceBigQueryServices
-
getWriteStreamService
public BigQueryServices.WriteStreamService getWriteStreamService(BigQueryOptions options)
Description copied from interface:BigQueryServicesReturns a real, mock, or fakeBigQueryServices.WriteStreamService.- Specified by:
getWriteStreamServicein interfaceBigQueryServices
-
getStorageClient
public BigQueryServices.StorageClient getStorageClient(BigQueryOptions options) throws java.io.IOException
Description copied from interface:BigQueryServicesReturns a real, mock, or fakeBigQueryServices.StorageClient.- Specified by:
getStorageClientin interfaceBigQueryServices- Throws:
java.io.IOException
-
createBigQueryClientCustomErrors
public static org.apache.beam.sdk.extensions.gcp.util.CustomHttpErrors createBigQueryClientCustomErrors()
-
-