gravitino.client.dto_converters.DTOConverters

class gravitino.client.dto_converters.DTOConverters

Bases: object

Utility class for converting between DTOs and domain objects.

__init__()

Methods

__init__()

from_job_template_dto(dto)

to_catalog(metalake, catalog, client)

to_catalog_update_request(change)

to_job_template_dto(template)

to_job_template_update_request(change)

to_metalake_update_request(change)

to_privilege_dto(privilege)

to_securable_object_dto(obj)

to_shell_job_template(template)

to_spark_job_template(template)

to_tag_update_request(change)

Converts a TagChange to a TagUpdateRequestBase.

to_template_update_dto(template_update)

static to_tag_update_request(change: TagChange) TagUpdateRequestBase

Converts a TagChange to a TagUpdateRequestBase.

Args:

change (TagChange): the TagChange to convert.

Raises:

IllegalArgumentException: if the change is not a valid TagChange.

Returns:

TagUpdateRequestBase: the TagUpdateRequestBase corresponding to the change.