gravitino.dto.rel.partitions.range_partition_dto.RangePartitionDTO

class gravitino.dto.rel.partitions.range_partition_dto.RangePartitionDTO(name: str, properties: Dict[str, str], upper: LiteralDTO, lower: LiteralDTO)

Bases: PartitionDTO, RangePartition

Data transfer object representing a range partition.

__init__(name: str, properties: Dict[str, str], upper: LiteralDTO, lower: LiteralDTO)

Methods

__init__(name, properties, upper, lower)

lower()

Returns:

name()

Returns:

properties()

Returns:

type()

Gets the type of the partition.

upper()

Returns:

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.

lower() LiteralDTO
Returns:

Literal[Any]: The lower bound of the partition.

name() str
Returns:

str: The name of the partition.

properties() Dict[str, str]
Returns:

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

type() Type

Gets the type of the partition.

Returns:

Type: The type of the partition.

upper() LiteralDTO
Returns:

Literal[Any]: The upper bound of the partition.