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
Modifier and TypeClassDescriptionstatic enum
Type of user-defined function. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static UserDefinedFunction
Creates a Google Cloud BigQuery user-defined function given a Google Cloud Storage URI (e.g.IfgetType()
isUserDefinedFunction.Type.INLINE
this method returns a code blob.getType()
Returns the type of user defined function.int
hashCode()
static UserDefinedFunction
Creates a Google Cloud BigQuery user-defined function given a code blob.abstract com.google.api.services.bigquery.model.UserDefinedFunctionResource
toPb()
-
Method Details
-
getType
Returns the type of user defined function. -
getContent
IfgetType()
isUserDefinedFunction.Type.INLINE
this method returns a code blob. IfgetType()
isUserDefinedFunction.Type.FROM_URI
the 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).
-