Class Routine (2.17.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
TypeDescription
boolean

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

equals(Object obj)

public final boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

exists()

public boolean exists()

Checks if this routine exists.

Returns
TypeDescription
boolean

getBigQuery()

public BigQuery getBigQuery()

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

Returns
TypeDescription
BigQuery

hashCode()

public final int hashCode()
Returns
TypeDescription
int
Overrides

readObject(ObjectInputStream in)

public void readObject(ObjectInputStream in)
Parameter
NameDescription
inObjectInputStream
Exceptions
TypeDescription
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
NameDescription
optionsRoutineOption[]
Returns
TypeDescription
Routine

toBuilder()

public Routine.Builder toBuilder()

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

Returns
TypeDescription
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
NameDescription
optionsRoutineOption[]
Returns
TypeDescription
Routine