gravitino.api.rel.partitions.list_partition.ListPartition

class gravitino.api.rel.partitions.list_partition.ListPartition

Bases: Partition

A list partition represents a result of list partitioning. For example, for list partition

``` PARTITION p202204_California VALUES IN (

(“2022-04-01”, “Los Angeles”), (“2022-04-01”, “San Francisco”)

)

its name is “p202204_California” and lists are [[“2022-04-01”,”Los Angeles”], [“2022-04-01”, “San Francisco”]].

APIs that are still evolving towards becoming stable APIs, and can change from one feature release to another (0.5.0 to 0.6.0).

__init__()

Methods

__init__()

lists()

Returns:

name()

Returns:

properties()

Returns:

abstract lists() List[List[Literal[Any]]]
Returns:

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

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.