gravitino.dto.rel.partitions.partition_dto.PartitionDTO

class gravitino.dto.rel.partitions.partition_dto.PartitionDTO

Bases: Partition

Represents a Partition Data Transfer Object (DTO) that implements the Partition interface.

__init__()

Methods

__init__()

name()

Returns:

properties()

Returns:

type()

Gets the type of the partition.

class Type(value)

Bases: str, Enum

Type of the partition.

IDENTITY = 'identity'

The identity partition type.

LIST = 'list'

The list partition type.

RANGE = 'range'

The range partition type.

abstract name() str
Returns:

str: The name of the partition.

abstract properties() Dict[str, str]
Returns:

Dict[str, str]: The properties of the partition, such as statistics, location, etc.

abstract type() Type

Gets the type of the partition.

Returns:

Type: The type of the partition.