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,
    ) -> "PathPartitionParser":
        """Creates a path-based partition parser using a flattened argument list.

        Args:
            style: The partition style - may be either HIVE or DIRECTORY.
            base_dir: "/"-delimited base directory to start searching for partitions
                (exclusive). File paths outside of this directory will be considered
                unpartitioned. Specify `None` or an empty string to search for
                partitions in all file path directories.
            field_names: The partition key names. Required for DIRECTORY partitioning.
                Optional for HIVE partitioning. When non-empty, the order and length of
                partition key field names must match the order and length of partition
                directories discovered. Partition key field names are not required to
                exist in the dataset schema.
            filesystem: Filesystem that will be used for partition path file I/O.

        Returns:
            The new path-based partition parser.
        """
        scheme = PathPartitionScheme(style, base_dir, field_names, filesystem)
        return PathPartitionParser(scheme)
Creates a path-based partition parser using a flattened argument list.

        Args:
            style: The partition style - may be either HIVE or DIRECTORY.
            base_dir: "/"-delimited base directory to start searching for partitions
                (exclusive). File paths outside of this directory will be considered
                unpartitioned. Specify `None` or an empty string to search for
                partitions in all file path directories.
            field_names: The partition key names. Required for DIRECTORY partitioning.
                Optional for HIVE partitioning. When non-empty, the order and length of
                partition key field names must match the order and length of partition
                directories discovered. Partition key field names are not required to
                exist in the dataset schema.
            filesystem: Filesystem that will be used for partition path file I/O.

        Returns:
            The new path-based partition parser.
        
Creates a path-based partition parser using a flattened argument list.
Creates a path - based partition parser using a flattened argument list .
def of(
        style: PartitionStyle = PartitionStyle.HIVE,
        base_dir: Optional[str] = None,
        field_names: Optional[List[str]] = None,
        filesystem: Optional["pyarrow.fs.FileSystem"] = None,
    ) -> "PathPartitionParser":
        scheme = PathPartitionScheme(style, base_dir, field_names, filesystem)
        return PathPartitionParser(scheme)
def of ( style : PartitionStyle = PartitionStyle . HIVE , base_dir : Optional [ str ] = None , field_names : Optional [ List [ str ] ] = None , filesystem : Optional [ "pyarrow.fs.FileSystem" ] = None , ) -> "PathPartitionParser" : scheme = PathPartitionScheme ( style , base_dir , field_names , filesystem ) return PathPartitionParser ( scheme )
Creates a path-based partition parser using a flattened argument list.
Creates a path - based partition parser using a flattened argument list .
"""Creates a path-based partition parser using a flattened argument list.

        Args:
            style: The partition style - may be either HIVE or DIRECTORY.
            base_dir: "/"-delimited base directory to start searching for partitions
                (exclusive). File paths outside of this directory will be considered
                unpartitioned. Specify `None` or an empty string to search for
                partitions in all file path directories.
            field_names: The partition key names. Required for DIRECTORY partitioning.
                Optional for HIVE partitioning. When non-empty, the order and length of
                partition key field names must match the order and length of partition
                directories discovered. Partition key field names are not required to
                exist in the dataset schema.
            filesystem: Filesystem that will be used for partition path file I/O.

        Returns:
            The new path-based partition parser.
        """
The new path-based partition parser.
The new path - based partition parser .
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 to start searching for partitions
(exclusive). File paths outside of this directory will be considered
unpartitioned. Specify `None` or an empty string to search for
partitions in all file path directories.
" / " - delimited base directory to start searching for partitions ( exclusive ) . File paths outside of this directory will be considered unpartitioned . Specify ` None ` or an empty string to search for partitions in all file path directories .
field_names
Optional[List[str]]
The partition key names. Required for DIRECTORY partitioning.
Optional for HIVE partitioning. When non-empty, the order and length of
partition key field names must match the order and length of partition
directories discovered. Partition key field names are not required to
exist in the dataset schema.
The partition key names . Required for DIRECTORY partitioning . Optional for HIVE partitioning . When non - empty the order and length of partition key field names must match the order and length of partition directories discovered . Partition key field names are not required to exist in the dataset schema .
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 .