Package com.google.cloud.bigquery
Class UserDefinedFunction
java.lang.Object
com.google.cloud.bigquery.UserDefinedFunction
- All Implemented Interfaces:
Serializable
Google BigQuery User Defined Function. BigQuery supports user-defined functions (UDFs) written in
JavaScript. A UDF is similar to the "Map" function in a MapReduce: it takes a single row as input
and produces zero or more rows as output. The output can potentially have a different schema than
the input.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of user-defined function. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UserDefinedFunctionCreates a Google Cloud BigQuery user-defined function given a Google Cloud Storage URI (e.g.IfgetType()isUserDefinedFunction.Type.INLINEthis method returns a code blob.getType()Returns the type of user defined function.inthashCode()static UserDefinedFunctionCreates a Google Cloud BigQuery user-defined function given a code blob.abstract com.google.api.services.bigquery.model.UserDefinedFunctionResourcetoPb()
-
Method Details
-
getType
Returns the type of user defined function. -
getContent
IfgetType()isUserDefinedFunction.Type.INLINEthis method returns a code blob. IfgetType()isUserDefinedFunction.Type.FROM_URIthe method returns a Google Cloud Storage URI (e.g. gs://bucket/path). -
hashCode
public int hashCode() -
equals
-
toPb
public abstract com.google.api.services.bigquery.model.UserDefinedFunctionResource toPb() -
inline
Creates a Google Cloud BigQuery user-defined function given a code blob. -
fromUri
Creates a Google Cloud BigQuery user-defined function given a Google Cloud Storage URI (e.g. gs://bucket/path).
-