public class Routine extends RoutineInfo
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...)
.
Modifier and Type | Class and Description |
---|---|
static class |
Routine.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
delete()
Deletes this routine.
|
boolean |
equals(Object obj) |
boolean |
exists()
Checks if this routine exists.
|
BigQuery |
getBigQuery()
Returns the routine's
BigQuery object used to issue requests. |
int |
hashCode() |
void |
readObject(ObjectInputStream in) |
Routine |
reload(BigQuery.RoutineOption... options)
Fetches this routine's latest information.
|
Routine.Builder |
toBuilder()
Returns a builder pre-populated using the current values of this routine.
|
Routine |
update(BigQuery.RoutineOption... options)
Update's the routine's information with this Routine's information.
|
getArguments, getBody, getCreationTime, getEtag, getImportedLibraries, getLanguage, getLastModifiedTime, getReturnType, getRoutineId, getRoutineType, newBuilder, of, toString
public boolean exists()
public Routine reload(BigQuery.RoutineOption... options)
null
if the routine does not exist.public Routine update(BigQuery.RoutineOption... options)
Routine
is returned.public boolean delete()
true
if routine was deleted, false
if it was not foundBigQueryException
- upon failurepublic BigQuery getBigQuery()
BigQuery
object used to issue requests.public Routine.Builder toBuilder()
RoutineInfo
toBuilder
in class RoutineInfo
public final boolean equals(Object obj)
equals
in class RoutineInfo
public final int hashCode()
hashCode
in class RoutineInfo
public void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright © 2019 Google LLC. All rights reserved.