Class UserDefinedFunction (2.33.2)

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
NameDescription
functionDefinitionString
Returns
TypeDescription
UserDefinedFunction

inline(String functionDefinition)

public static UserDefinedFunction inline(String functionDefinition)

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

Parameter
NameDescription
functionDefinitionString
Returns
TypeDescription
UserDefinedFunction

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
String

getType()

public UserDefinedFunction.Type getType()

Returns the type of user defined function.

Returns
TypeDescription
UserDefinedFunction.Type

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toPb()

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