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,DataClassJsonMixinRepresents 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)Returns the audit information.
comment()Returns the optional comment of the function.
Returns the definitions of the function.
Returns whether the function is deterministic.
from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])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- 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.