Package com.google.cloud.bigquery
Class Routine
- java.lang.Object
-
- com.google.cloud.bigquery.RoutineInfo
-
- com.google.cloud.bigquery.Routine
-
- All Implemented Interfaces:
Serializable
public class Routine extends RoutineInfo
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 aroutineobject with the most recent information usereload(com.google.cloud.bigquery.BigQuery.RoutineOption...).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoutine.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelete()Deletes this routine.booleanequals(Object obj)booleanexists()Checks if this routine exists.BigQuerygetBigQuery()Returns the routine'sBigQueryobject used to issue requests.inthashCode()voidreadObject(ObjectInputStream in)Routinereload(BigQuery.RoutineOption... options)Fetches this routine's latest information.Routine.BuildertoBuilder()Returns a builder pre-populated using the current values of this routine.Routineupdate(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, getDescription, getDeterminismLevel, getEtag, getImportedLibraries, getLanguage, getLastModifiedTime, getRemoteFunctionOptions, getReturnTableType, getReturnType, getRoutineId, getRoutineType, newBuilder, of, toString
-
-
-
-
Method Detail
-
exists
public boolean exists()
Checks if this routine exists.
-
reload
public Routine reload(BigQuery.RoutineOption... options)
Fetches this routine's latest information. Returnsnullif the routine does not exist.
-
update
public Routine update(BigQuery.RoutineOption... options)
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
public BigQuery getBigQuery()
Returns the routine'sBigQueryobject used to issue requests.
-
toBuilder
public Routine.Builder toBuilder()
Description copied from class:RoutineInfoReturns a builder pre-populated using the current values of this routine.- Overrides:
toBuilderin classRoutineInfo
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classRoutineInfo
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classRoutineInfo
-
readObject
public void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
-