Class UserDefinedFunction (2.39.1)

public abstract class UserDefinedFunction implements 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: User-Defined Functions

Inheritance

Object > UserDefinedFunction

Implements

Serializable

Static Methods

fromUri(String functionDefinition)

public static UserDefinedFunction fromUri(String functionDefinition)

Creates a Google Cloud BigQuery user-defined function given a Google Cloud Storage URI (e.g. gs://bucket/path).

Parameter
Name Description
functionDefinition String
Returns
Type Description
UserDefinedFunction

inline(String functionDefinition)

public static UserDefinedFunction inline(String functionDefinition)

Creates a Google Cloud BigQuery user-defined function given a code blob.

Parameter
Name Description
functionDefinition String
Returns
Type Description
UserDefinedFunction

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContent()

public String getContent()

If #getType() is Type#INLINE this method returns a code blob. If #getType() is Type#FROM_URI the method returns a Google Cloud Storage URI (e.g. gs://bucket/path).

Returns
Type Description
String

getType()

public UserDefinedFunction.Type getType()

Returns the type of user defined function.

Returns
Type Description
UserDefinedFunction.Type

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toPb()

public abstract UserDefinedFunctionResource toPb()
Returns
Type Description
com.google.api.services.bigquery.model.UserDefinedFunctionResource