ray.data.datasource.PartitionStyle#

class ray.data.datasource.PartitionStyle(value)[source]#

Bases: str, enum.Enum

Supported dataset partition styles.

Inherits from str to simplify plain text serialization/deserialization.

Examples

>>> # Serialize to JSON text.
>>> json.dumps(PartitionStyle.HIVE)  
'"hive"'
>>> # Deserialize from JSON text.
>>> PartitionStyle(json.loads('"hive"'))  
<PartitionStyle.HIVE: 'hive'>

DeveloperAPI: This API may change across minor Ray releases.