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, IdentityPartition

Represents 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)

field_names()

Returns:

name()

Returns:

properties()

Returns:

type()

Gets the type of the partition.

values()

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.

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.

type() Type

Gets the type of the partition.

Returns:

Type: The type of the partition.

values() List[LiteralDTO]
Returns:

List[Literal[Any]]: The values of the identity partition.