ray.data.datasource.PartitionStyle#
- class ray.data.datasource.PartitionStyle(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
-
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.
Methods
Encode the string using the codec registered for encoding.
Return a copy with all occurrences of substring old replaced by new.
Return a list of the substrings in the string, using sep as the separator string.
Return a list of the substrings in the string, using sep as the separator string.
Concatenate any number of strings.
Return a capitalized version of the string.
Return a version of the string suitable for caseless comparisons.
Return a version of the string where each word is titlecased.
Return a centered string of length width.
Return the number of non-overlapping occurrences of substring sub in string S[start:end].
Return a copy where all tab characters are expanded using spaces.
Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
Partition the string into three parts using the given separator.
Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
Return a left-justified string of length width.
Return a copy of the string converted to lowercase.
Return a copy of the string with leading whitespace removed.
Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].
Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].
Return a right-justified string of length width.
Return a copy of the string with trailing whitespace removed.
Partition the string into three parts using the given separator.
Return a list of the lines in the string, breaking at line boundaries.
Return a copy of the string with leading and trailing whitespace removed.
Convert uppercase characters to lowercase and lowercase characters to uppercase.
Replace each character in the string using the given translation table.
Return a copy of the string converted to uppercase.
Return True if S starts with the specified prefix, False otherwise.
Return True if S ends with the specified suffix, False otherwise.
Return a str with the given prefix string removed if present.
Return a str with the given suffix string removed if present.
Return True if all characters in the string are ASCII, False otherwise.
Return True if the string is a lowercase string, False otherwise.
Return True if the string is an uppercase string, False otherwise.
Return True if the string is a title-cased string, False otherwise.
Return True if the string is a whitespace string, False otherwise.
Return True if the string is a decimal string, False otherwise.
Return True if the string is a digit string, False otherwise.
Return True if the string is a numeric string, False otherwise.
Return True if the string is an alphabetic string, False otherwise.
Return True if the string is an alpha-numeric string, False otherwise.
Return True if the string is a valid Python identifier, False otherwise.
Return True if the string is printable, False otherwise.
Pad a numeric string with zeros on the left, to fill a field of the given width.
Return a formatted version of S, using substitutions from args and kwargs.
Return a formatted version of S, using substitutions from mapping.
Return a translation table usable for str.translate().
Attributes