Package io.squashql
Class BigQueryServiceAccountDatastore
java.lang.Object
io.squashql.BigQueryServiceAccountDatastore
- All Implemented Interfaces:
BigQueryDatastore,Datastore
Implementation of
BigQueryDatastore that uses a ServiceAccountCredentials.-
Constructor Summary
ConstructorsConstructorDescriptionBigQueryServiceAccountDatastore(com.google.auth.oauth2.ServiceAccountCredentials credentials, String projectId, String datasetName) -
Method Summary
Modifier and TypeMethodDescriptionfetchStoresByName(BigQueryDatastore datastore) com.google.cloud.bigquery.BigQuerygetFieldsOrNull(com.google.cloud.bigquery.BigQuery query, String datasetName, String tableName) static Collection<String>getTableNames(com.google.cloud.bigquery.BigQuery query, String projectId, String datasetName)
-
Constructor Details
-
BigQueryServiceAccountDatastore
-
-
Method Details
-
getProjectId
- Specified by:
getProjectIdin interfaceBigQueryDatastore
-
getDatasetName
- Specified by:
getDatasetNamein interfaceBigQueryDatastore
-
getBigquery
public com.google.cloud.bigquery.BigQuery getBigquery()- Specified by:
getBigqueryin interfaceBigQueryDatastore
-
storesByName
- Specified by:
storesByNamein interfaceDatastore
-
fetchStoresByName
-
getTableNames
public static Collection<String> getTableNames(com.google.cloud.bigquery.BigQuery query, String projectId, String datasetName) -
getFieldsOrNull
-