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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
delete()
Deletes this routine.final boolean
boolean
exists()
Checks if this routine exists.Returns the routine'sBigQuery
object used to issue requests.final int
hashCode()
void
reload
(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, 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. Returnsnull
if 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 newRoutine
is returned. -
delete
public boolean delete()Deletes this routine.- Returns:
true
if routine was deleted,false
if it was not found- Throws:
BigQueryException
- upon failure
-
getBigQuery
Returns the routine'sBigQuery
object used to issue requests. -
toBuilder
Description copied from class:RoutineInfo
Returns a builder pre-populated using the current values of this routine.- Overrides:
toBuilder
in classRoutineInfo
-
equals
- Overrides:
equals
in classRoutineInfo
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classRoutineInfo
-
readObject
- Throws:
IOException
ClassNotFoundException
-