gravitino.dto.rel.partitions.list_partition_dto.ListPartitionDTO¶
- class gravitino.dto.rel.partitions.list_partition_dto.ListPartitionDTO(name: str, lists: List[List[LiteralDTO]], properties: Dict[str, str])¶
Bases:
PartitionDTO,ListPartitionRepresents a List Partition Data Transfer Object (DTO) that implements the ListPartition interface.
- __init__(name: str, lists: List[List[LiteralDTO]], properties: Dict[str, str])¶
Methods
__init__(name, lists, properties)lists()Returns:
name()Returns:
Returns:
type()Gets the type of the partition.
- class Type(value)¶
Bases:
str,EnumType of the partition.
- IDENTITY = 'identity'¶
The identity partition type.
- LIST = 'list'¶
The list partition type.
- RANGE = 'range'¶
The range partition type.
- lists() List[List[LiteralDTO]]¶
- Returns:
List[List[Literal[Any]]]: The values of the list 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.