Class Routine (2.42.1)

public class Routine extends RoutineInfo

A Google BigQuery Routine.

Objects of this class are immutable. Operations that modify the routine like #update return a new object. To get a routine object with the most recent information use #reload.

Inheritance

Object > RoutineInfo > Routine

Methods

delete()

public boolean delete()

Deletes this routine.

Returns
Type Description
boolean

true if routine was deleted, false if it was not found

equals(Object obj)

public final boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

exists()

public boolean exists()

Checks if this routine exists.

Returns
Type Description
boolean

getBigQuery()

public BigQuery getBigQuery()

Returns the routine's BigQuery object used to issue requests.

Returns
Type Description
BigQuery

hashCode()

public final int hashCode()
Returns
Type Description
int
Overrides

readObject(ObjectInputStream in)

public void readObject(ObjectInputStream in)
Parameter
Name Description
in ObjectInputStream
Exceptions
Type Description
IOException
ClassNotFoundException

reload(BigQuery.RoutineOption[] options)

public Routine reload(BigQuery.RoutineOption[] options)

Fetches this routine's latest information. Returns null if the routine does not exist.

Parameter
Name Description
options RoutineOption[]
Returns
Type Description
Routine

toBuilder()

public Routine.Builder toBuilder()

Returns a builder pre-populated using the current values of this routine.

Returns
Type Description
Routine.Builder
Overrides

update(BigQuery.RoutineOption[] options)

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 new Routine is returned.

Parameter
Name Description
options RoutineOption[]
Returns
Type Description
Routine