public class Model extends ModelInfo
Objects of this class are immutable. Operations that modify the table like update(com.google.cloud.bigquery.BigQuery.ModelOption...)
return a new object. To get a Model object with the most recent information use reload(com.google.cloud.bigquery.BigQuery.ModelOption...).
| Modifier and Type | Class and Description |
|---|---|
static class |
Model.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Deletes this model.
|
boolean |
equals(Object obj) |
boolean |
exists()
Check if this model exists.
|
BigQuery |
getBigQuery()
Return's the model's
BigQuery object used to issue requests. |
int |
hashCode() |
Model |
reload(BigQuery.ModelOption... options)
Fetches current model's state from the service.
|
Model.Builder |
toBuilder() |
Model |
update(BigQuery.ModelOption... options)
Updates the model's information with this model's information.
|
getCreationTime, getDescription, getEncryptionConfiguration, getEtag, getExpirationTime, getFeatureColumns, getFriendlyName, getLabelColumns, getLabels, getLastModifiedTime, getModelId, getModelType, getTrainingRuns, newBuilder, of, toStringpublic boolean exists()
true if this table exists, false otherwiseBigQueryException - upon failurepublic Model reload(BigQuery.ModelOption... options)
null if the model does not
exist. A new Model is returned.options - model optionsModel object with latest information or null if not foundBigQueryException - upon failurepublic Model update(BigQuery.ModelOption... options)
Model object is returned.options - dataset optionsModel object with updated informationBigQueryException - upon failurepublic boolean delete()
true if model was deleted, false if it was not foundBigQueryException - upon failurepublic BigQuery getBigQuery()
BigQuery object used to issue requests. *public Model.Builder toBuilder()
Copyright © 2019 Google LLC. All rights reserved.