Package google.registry.bigquery
Class CheckedBigquery
java.lang.Object
google.registry.bigquery.CheckedBigquery
Wrapper of
Bigquery
with validation helpers.-
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.services.bigquery.Bigquery
ensureDataSetAndTableExist
(String projectId, String datasetId, String tableId) Returns a new connection to Bigquery, first ensuring that the given dataset and table exist in project with the given id, creating them if required.com.google.api.services.bigquery.Bigquery
ensureDataSetExists
(String projectId, String datasetId) Returns a new connection to Bigquery, first ensuring that the given dataset exists in the project with the given id, creating it if required.
-
Method Details
-
ensureDataSetExists
public com.google.api.services.bigquery.Bigquery ensureDataSetExists(String projectId, String datasetId) throws IOException Returns a new connection to Bigquery, first ensuring that the given dataset exists in the project with the given id, creating it if required.- Throws:
IOException
-
ensureDataSetAndTableExist
public com.google.api.services.bigquery.Bigquery ensureDataSetAndTableExist(String projectId, String datasetId, String tableId) throws IOException Returns a new connection to Bigquery, first ensuring that the given dataset and table exist in project with the given id, creating them if required.- Throws:
IOException
-