Class CheckedBigquery


  • public class CheckedBigquery
    extends java.lang.Object
    Wrapper of Bigquery with validation helpers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.api.services.bigquery.Bigquery ensureDataSetAndTableExist​(java.lang.String projectId, java.lang.String datasetId, java.lang.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​(java.lang.String projectId, java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • ensureDataSetExists

        public com.google.api.services.bigquery.Bigquery ensureDataSetExists​(java.lang.String projectId,
                                                                             java.lang.String datasetId)
                                                                      throws java.io.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:
        java.io.IOException
      • ensureDataSetAndTableExist

        public com.google.api.services.bigquery.Bigquery ensureDataSetAndTableExist​(java.lang.String projectId,
                                                                                    java.lang.String datasetId,
                                                                                    java.lang.String tableId)
                                                                             throws java.io.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:
        java.io.IOException