Package com.google.cloud.bigquery
Class RoutineInfo
- java.lang.Object
-
- com.google.cloud.bigquery.RoutineInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Routine
public class RoutineInfo extends Object implements Serializable
Google BigQuery routine information. A Routine is an API abstraction that encapsulates several related concepts inside the BigQuery service, including scalar user defined functions (UDFS) and stored procedures.For more information about the REST representation of routines, see: https://cloud.google.com/bigquery/docs/reference/rest/v2/routines
For more information about working with scalar functions, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/user-defined-functions
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RoutineInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<RoutineArgument>
getArguments()
Returns the list of arguments for the routine.String
getBody()
Returns the definition body of the routine.Long
getCreationTime()
Returns the creation time of the routine, represented as milliseconds since the epoch.String
getDescription()
Returns the description of the routine.String
getDeterminismLevel()
Returns the determinism level of the JavaScript UDF if defined.String
getEtag()
Returns the hash of the routine resource.List<String>
getImportedLibraries()
Returns the list of imported libraries for the routine.String
getLanguage()
Returns the language of the routine.Long
getLastModifiedTime()
Returns the last modification time of the routine, represented as milliseconds since the epoch.RemoteFunctionOptions
getRemoteFunctionOptions()
Returns the Remote function specific options.StandardSQLTableType
getReturnTableType()
If specified, returns the table type returned from the routine.StandardSQLDataType
getReturnType()
If specified, returns the data type returned from the routine.RoutineId
getRoutineId()
Returns the RoutineId identified for the routine resource.String
getRoutineType()
Returns the type of the routine, e.g.int
hashCode()
static RoutineInfo.Builder
newBuilder(RoutineId routineId)
Returns a builder for aRoutineInfo
object given routine identity.static RoutineInfo
of(RoutineId routineId)
Returns aRoutineInfo
object given routine identity.RoutineInfo.Builder
toBuilder()
Returns a builder pre-populated using the current values of this routine.String
toString()
-
-
-
Method Detail
-
getRoutineId
public RoutineId getRoutineId()
Returns the RoutineId identified for the routine resource. *
-
getEtag
public String getEtag()
Returns the hash of the routine resource.
-
getRoutineType
public String getRoutineType()
Returns the type of the routine, e.g. SCALAR_FUNCTION.
-
getCreationTime
public Long getCreationTime()
Returns the creation time of the routine, represented as milliseconds since the epoch.
-
getDescription
public String getDescription()
Returns the description of the routine.
-
getDeterminismLevel
public String getDeterminismLevel()
Returns the determinism level of the JavaScript UDF if defined.
-
getLastModifiedTime
public Long getLastModifiedTime()
Returns the last modification time of the routine, represented as milliseconds since the epoch.
-
getLanguage
public String getLanguage()
Returns the language of the routine. Currently supported languages include SQL and JAVASCRIPT.
-
getArguments
public List<RoutineArgument> getArguments()
Returns the list of arguments for the routine.
-
getReturnType
public StandardSQLDataType getReturnType()
If specified, returns the data type returned from the routine.
-
getReturnTableType
public StandardSQLTableType getReturnTableType()
If specified, returns the table type returned from the routine.
-
getImportedLibraries
public List<String> getImportedLibraries()
Returns the list of imported libraries for the routine. Only relevant for routines implemented using the JAVASCRIPT language.
-
getBody
public String getBody()
Returns the definition body of the routine.
-
getRemoteFunctionOptions
public RemoteFunctionOptions getRemoteFunctionOptions()
Returns the Remote function specific options.
-
toBuilder
public RoutineInfo.Builder toBuilder()
Returns a builder pre-populated using the current values of this routine.
-
newBuilder
public static RoutineInfo.Builder newBuilder(RoutineId routineId)
Returns a builder for aRoutineInfo
object given routine identity.
-
of
public static RoutineInfo of(RoutineId routineId)
Returns aRoutineInfo
object given routine identity.
-
-