Represents an ''absolute'' or ''relative'' path to a node in ZooKeeper.
An ''absolute'' path starts with the /
character. All other forms are considered ''relative''. Paths are virtually
identical to those on Unix file systems and may include both .
and ..
parts, indicating the current and parent node,
respectively.
Examples:
"/"
"../foo"
"/foo/bar"
"./foo/../bar"
- Companion:
- object
Value members
Abstract methods
Returns the normalized form of this path.
Returns the normalized form of this path.
The normalization process entails the removal of .
and ..
parts where possible.
Examples:
"/.." normalizes to "/"
"/foo/.." normalizes to "/"
"/foo/../bar" normalizes to "/bar"
"./foo" normalizes to "foo"
"foo/." normalizes to "foo"
"foo/.." normalizes to ""
"foo/./bar" normalizes to "foo/bar"
"foo/../bar" normalizes to "bar"
- Returns:
the normalized form of this path
Returns a sequence containing the parts of the path.
Returns a sequence containing the parts of the path.
Parts represent the node names sandwiched between /
characters. An ''absolute'' path, which is prefixed with /
, always
yields a sequence containing an empty string as the first element. The path ""
contains no parts, hence an empty
sequence is returned. In all other cases, parts are non-empty strings.
Examples:
"" parts ()
"/" parts ("/")
"/foo/bar" parts ("", "foo", "bar")
"foo/bar" parts ("foo", "bar")
- Returns:
a sequence containing the parts of path