gravitino.api.rel.partitions.identity_partition.IdentityPartition¶
- class gravitino.api.rel.partitions.identity_partition.IdentityPartition¶
Bases:
PartitionAn identity partition represents a result of identity partitioning. For example, for Hive partition
` PARTITION (dt='2008-08-08',country='us') `its partition name is “dt=2008-08-08/country=us”, field names are [[“dt”], [“country”]] and values are [“2008-08-08”, “us”].
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
- abstract field_names() List[List[str]]¶
- Returns:
List[List[str]]: A list of lists representing the field names of the identity 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.