python/ray/data/datasource/partitioning.py
def of(
        style: PartitionStyle = PartitionStyle.HIVE,
        base_dir: Optional[str] = None,
        field_names: Optional[List[str]] = None,
        filesystem: Optional["pyarrow.fs.FileSystem"] = None,
    ) -> "PathPartitionEncoder":
        """Creates a new partition path encoder.
        Args:
            style: The partition style - may be either HIVE or DIRECTORY.
            base_dir: "/"-delimited base directory that all partition paths will be
                generated under (exclusive).
            field_names: The partition key field names (i.e. column names for tabular
                datasets). Required for HIVE partition paths, optional for DIRECTORY
                partition paths. When non-empty, the order and length of partition key
                field names must match the order and length of partition values.
            filesystem: Filesystem that will be used for partition path file I/O.

        Returns:
            The new partition path encoder.
        """
        scheme = PathPartitionScheme(style, base_dir, field_names, filesystem)
        return PathPartitionEncoder(scheme)
Creates a new partition path encoder.
        Args:
            style: The partition style - may be either HIVE or DIRECTORY.
            base_dir: "/"-delimited base directory that all partition paths will be
                generated under (exclusive).
            field_names: The partition key field names (i.e. column names for tabular
                datasets). Required for HIVE partition paths, optional for DIRECTORY
                partition paths. When non-empty, the order and length of partition key
                field names must match the order and length of partition values.
            filesystem: Filesystem that will be used for partition path file I/O.

        Returns:
            The new partition path encoder.
        
Creates a new partition path encoder.
Creates a new partition path encoder .
def of(
        style: PartitionStyle = PartitionStyle.HIVE,
        base_dir: Optional[str] = None,
        field_names: Optional[List[str]] = None,
        filesystem: Optional["pyarrow.fs.FileSystem"] = None,
    ) -> "PathPartitionEncoder":
        scheme = PathPartitionScheme(style, base_dir, field_names, filesystem)
        return PathPartitionEncoder(scheme)
def of ( style : PartitionStyle = PartitionStyle . HIVE , base_dir : Optional [ str ] = None , field_names : Optional [ List [ str ] ] = None , filesystem : Optional [ "pyarrow.fs.FileSystem" ] = None , ) -> "PathPartitionEncoder" : scheme = PathPartitionScheme ( style , base_dir , field_names , filesystem ) return PathPartitionEncoder ( scheme )
Creates a new partition path encoder.
Creates a new partition path encoder .
"""Creates a new partition path encoder.
        Args:
            style: The partition style - may be either HIVE or DIRECTORY.
            base_dir: "/"-delimited base directory that all partition paths will be
                generated under (exclusive).
            field_names: The partition key field names (i.e. column names for tabular
                datasets). Required for HIVE partition paths, optional for DIRECTORY
                partition paths. When non-empty, the order and length of partition key
                field names must match the order and length of partition values.
            filesystem: Filesystem that will be used for partition path file I/O.

        Returns:
            The new partition path encoder.
        """
The new partition path encoder.
The new partition path encoder .
style
PartitionStyle
The partition style - may be either HIVE or DIRECTORY.
The partition style - may be either HIVE or DIRECTORY .
base_dir
Optional[str]
"/"-delimited base directory that all partition paths will be
generated under (exclusive).
" / " - delimited base directory that all partition paths will be generated under ( exclusive ) .
field_names
Optional[List[str]]
The partition key field names . Required for HIVE partition paths, optional for DIRECTORY
partition paths. When non-empty, the order and length of partition key
field names must match the order and length of partition values.
The partition key field names . Required for HIVE partition paths optional for DIRECTORY partition paths . When non - empty the order and length of partition key field names must match the order and length of partition values .
filesystem
Optional["pyarrow.fs.FileSystem"]
Filesystem that will be used for partition path file I/O.
Filesystem that will be used for partition path file I / O .