gravitino.client.generic_function.GenericFunction¶
- class gravitino.client.generic_function.GenericFunction(function_dto: FunctionDTO, rest_client: HTTPClient, function_namespace: Namespace)¶
Bases:
Function,SupportsTagsA 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.
Returns the audit information.
comment()Returns the optional comment of the function.
Returns the definitions of the function.
Returns whether the function is deterministic.
Returns the function type.
get_tag(name)Get an associated tag by name.
List the tag names associated with the function.
List the tags associated with the function.
name()Returns the function name.
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.
- 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.
- 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.