Package com.google.cloud.bigquery
Class Routine
java.lang.Object
com.google.cloud.bigquery.RoutineInfo
com.google.cloud.bigquery.Routine
- All Implemented Interfaces:
Serializable
A Google BigQuery Routine.
Objects of this class are immutable. Operations that modify the routine like update(com.google.cloud.bigquery.BigQuery.RoutineOption...)
return a new object. To get a routine object with the most recent information use reload(com.google.cloud.bigquery.BigQuery.RoutineOption...).
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete()Deletes this routine.final booleanbooleanexists()Checks if this routine exists.Returns the routine'sBigQueryobject used to issue requests.final inthashCode()voidreload(BigQuery.RoutineOption... options) Fetches this routine's latest information.Returns a builder pre-populated using the current values of this routine.update(BigQuery.RoutineOption... options) Update's the routine's information with this Routine's information.Methods inherited from class com.google.cloud.bigquery.RoutineInfo
getArguments, getBody, getCreationTime, getDataGovernanceType, getDescription, getDeterminismLevel, getEtag, getImportedLibraries, getLanguage, getLastModifiedTime, getOtelAttributes, getRemoteFunctionOptions, getReturnTableType, getReturnType, getRoutineId, getRoutineType, newBuilder, of, toString
-
Method Details
-
exists
public boolean exists()Checks if this routine exists. -
reload
Fetches this routine's latest information. Returnsnullif the routine does not exist. -
update
Update's the routine's information with this Routine's information. This method does not allow changing the RoutineId identifier of the routine. A newRoutineis returned. -
delete
public boolean delete()Deletes this routine.- Returns:
trueif routine was deleted,falseif it was not found- Throws:
BigQueryException- upon failure
-
getBigQuery
Returns the routine'sBigQueryobject used to issue requests. -
toBuilder
Description copied from class:RoutineInfoReturns a builder pre-populated using the current values of this routine.- Overrides:
toBuilderin classRoutineInfo
-
equals
- Overrides:
equalsin classRoutineInfo
-
hashCode
public final int hashCode()- Overrides:
hashCodein classRoutineInfo
-
readObject
- Throws:
IOExceptionClassNotFoundException
-