gravitino.client.generic_function.GenericFunction

class gravitino.client.generic_function.GenericFunction(function_dto: FunctionDTO, rest_client: HTTPClient, function_namespace: Namespace)

Bases: Function, SupportsTags

A generic implementation of the Function interface.

__init__(function_dto: FunctionDTO, rest_client: HTTPClient, function_namespace: Namespace)

Create a GenericFunction from a FunctionDTO.

Args:

function_dto: The function DTO. rest_client: The REST client for tag operations. function_namespace: The full function namespace in metalake.catalog.schema format.

Methods

__init__(function_dto, rest_client, ...)

Create a GenericFunction from a FunctionDTO.

associate_tags(tags_to_add, tags_to_remove)

Associate or disassociate tags with the function.

audit_info()

Returns the audit information.

comment()

Returns the optional comment of the function.

definitions()

Returns the definitions of the function.

deterministic()

Returns whether the function is deterministic.

function_type()

Returns the function type.

get_tag(name)

Get an associated tag by name.

list_tags()

List the tag names associated with the function.

list_tags_info()

List the tags associated with the function.

name()

Returns the function name.

supports_tags()

Return the function's tag operations.

associate_tags(tags_to_add: list[str], tags_to_remove: list[str]) → list[str]

Associate or disassociate tags with the function.

audit_info() → AuditDTO | None

Returns the audit information.

comment() → str | None

Returns the optional comment of the function.

definitions() → List[FunctionDefinition]

Returns the definitions of the function.

deterministic() → bool

Returns whether the function is deterministic.

function_type() → FunctionType

Returns the function type.

get_tag(name: str) → Tag

Get an associated tag by name.

list_tags() → list[str]

List the tag names associated with the function.

list_tags_info() → list[gravitino.api.tag.tag.Tag]

List the tags associated with the function.

name() → str

Returns the function name.

supports_tags() → SupportsTags

Return the function’s tag operations.