Package io.debezium.document
Class Paths.ChildPath
java.lang.Object
io.debezium.document.Paths.ChildPath
- All Implemented Interfaces:
Path
,Paths.InnerPath
,Iterable<String>
- Enclosing class:
- Paths
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.debezium.document.Path
Path.Segments
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new path consisting of this path appended with the given path that will be treated as a relative path.int
boolean
int
hashCode()
iterator()
Get the last segment, if there is one.parent()
Get the optional parent path.segment
(int index) Get the segment at the given index.int
size()
Get the number of segments in the path.subpath
(int length) Get a portion of this path that has a specified number of segments.Obtain the representation of this path as a relative path without the leading '/'.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
parent
-
segment
-
-
Constructor Details
-
ChildPath
-
-
Method Details
-
iterator
-
lastSegment
Description copied from interface:Path
Get the last segment, if there is one.- Specified by:
lastSegment
in interfacePath
- Returns:
- an optional containing the last segment of this path (if this is not the root path), or an empty optional if this is the root path.
-
parent
Description copied from interface:Path
Get the optional parent path. -
size
public int size()Description copied from interface:Path
Get the number of segments in the path. -
hashCode
public int hashCode() -
equals
-
toString
-
toRelativePath
Description copied from interface:Path
Obtain the representation of this path as a relative path without the leading '/'.- Specified by:
toRelativePath
in interfacePath
- Returns:
- the relative path; never null but may be empty
-
segment
Description copied from interface:Path
Get the segment at the given index. -
subpath
Description copied from interface:Path
Get a portion of this path that has a specified number of segments. -
append
Description copied from interface:Path
Create a new path consisting of this path appended with the given path that will be treated as a relative path. -
copyInto
- Specified by:
copyInto
in interfacePaths.InnerPath
-