Class Model

    • Method Detail

      • exists

        public boolean exists()
        Check if this model exists.
        Returns:
        true if this table exists, false otherwise
        Throws:
        BigQueryException - upon failure
      • reload

        public Model reload​(BigQuery.ModelOption... options)
        Fetches current model's state from the service. Returns null if the model does not exist. A new Model is returned.
        Parameters:
        options - model options
        Returns:
        a Model object with latest information or null if not found
        Throws:
        BigQueryException - upon failure
      • update

        public Model update​(BigQuery.ModelOption... options)
        Updates the model's information with this model's information. Dataset and model identifiers cannot be updated. A new Model object is returned.
        Parameters:
        options - dataset options
        Returns:
        a Model object with updated information
        Throws:
        BigQueryException - upon failure
      • delete

        public boolean delete()
        Deletes this model.
        Returns:
        true if model was deleted, false if it was not found
        Throws:
        BigQueryException - upon failure
      • getBigQuery

        public BigQuery getBigQuery()
        Return's the model's BigQuery object used to issue requests. *