gravitino.dto.function.function_dto.FunctionDTO

class gravitino.dto.function.function_dto.FunctionDTO(_name: str, _function_type: FunctionType, _deterministic: bool, _comment: str | None = None, _definitions: List[FunctionDefinitionDTO] | None = None, _audit: AuditDTO | None = None)

Bases: Function, DataClassJsonMixin

Represents a Function DTO (Data Transfer Object).

__init__(_name: str, _function_type: FunctionType, _deterministic: bool, _comment: str | None = None, _definitions: List[FunctionDefinitionDTO] | None = None, _audit: AuditDTO | None = None) None

Methods

__init__(_name, _function_type, _deterministic)

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.

from_dict(kvs, *[, infer_missing])

from_json(s, *[, parse_float, parse_int, ...])

function_type()

Returns the function type.

name()

Returns the function name.

schema(*[, infer_missing, only, exclude, ...])

to_dict([encode_json])

to_json(*[, skipkeys, ensure_ascii, ...])

Attributes

dataclass_json_config

audit_info() AuditDTO | None

Returns the audit information.

comment() str | None

Returns the optional comment of the function.

definitions() List[FunctionDefinition] | None

Returns the definitions of the function.

deterministic() bool

Returns whether the function is deterministic.

function_type() FunctionType

Returns the function type.

name() str

Returns the function name.