Package io.debezium.document
Class Paths.RootPath
java.lang.Object
io.debezium.document.Paths.RootPath
- 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
Fields -
Constructor Summary
Constructors -
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.intbooleanvoidinthashCode()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.intsize()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, waitMethods inherited from interface java.lang.Iterable
spliterator
-
Field Details
-
INSTANCE
-
OPTIONAL_OF_ROOT
-
-
Constructor Details
-
RootPath
private RootPath()
-
-
Method Details
-
parent
Description copied from interface:PathGet the optional parent path. -
lastSegment
Description copied from interface:PathGet the last segment, if there is one.- Specified by:
lastSegmentin 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.
-
size
public int size()Description copied from interface:PathGet the number of segments in the path. -
hashCode
public int hashCode() -
equals
-
toString
-
toRelativePath
Description copied from interface:PathObtain the representation of this path as a relative path without the leading '/'.- Specified by:
toRelativePathin interfacePath- Returns:
- the relative path; never null but may be empty
-
iterator
-
forEach
-
subpath
Description copied from interface:PathGet a portion of this path that has a specified number of segments. -
segment
Description copied from interface:PathGet the segment at the given index. -
append
Description copied from interface:PathCreate a new path consisting of this path appended with the given path that will be treated as a relative path. -
copyInto
- Specified by:
copyIntoin interfacePaths.InnerPath
-