gravitino.dto.rel.partitions.identity_partition_dto.IdentityPartitionDTO¶
- class gravitino.dto.rel.partitions.identity_partition_dto.IdentityPartitionDTO(name: str, values: List[LiteralDTO], field_names: List[List[str]], properties: Dict[str, str])¶
Bases:
PartitionDTO,IdentityPartitionRepresents an Identity Partition Data Transfer Object (DTO) that implements the IdentityPartition interface.
- __init__(name: str, values: List[LiteralDTO], field_names: List[List[str]], properties: Dict[str, str])¶
Methods
__init__(name, values, field_names, properties)Returns:
name()Returns:
Returns:
type()Gets the type of the partition.
values()Returns:
- 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.
- field_names() List[List[str]]¶
- Returns:
List[List[str]]: A list of lists representing the field names of the identity 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.
- values() List[LiteralDTO]¶
- Returns:
List[Literal[Any]]: The values of the identity partition.