| Package | Description |
|---|---|
| io.debezium.document |
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
Paths.ChildPath |
(package private) static class |
Paths.MultiSegmentPath |
(package private) static class |
Paths.RootPath |
(package private) static class |
Paths.SingleSegmentPath |
| Modifier and Type | Field and Description |
|---|---|
static Path |
Paths.RootPath.INSTANCE |
private Path |
Paths.ChildPath.parent |
| Modifier and Type | Field and Description |
|---|---|
static Optional<Path> |
Paths.RootPath.OPTIONAL_OF_ROOT |
| Modifier and Type | Method and Description |
|---|---|
Path |
Paths.RootPath.append(Path relPath) |
Path |
Paths.SingleSegmentPath.append(Path relPath) |
Path |
Paths.MultiSegmentPath.append(Path relPath) |
Path |
Paths.ChildPath.append(Path relPath) |
Path |
Path.append(Path relPath)
Create a new path consisting of this path appended with the given path that will be treated as a relative path.
|
default Path |
Path.append(String relPath)
Create a new path consisting of this path with one or more additional segments given by the relative path.
|
static Path |
Path.parse(String path)
Parse a JSON Path expression.
|
(package private) static Path |
Paths.parse(String path,
boolean resolveJsonPointerEscapes) |
static Path |
Path.parse(String path,
boolean resolveJsonPointerEscapes)
Parse a JSON Path expression.
|
static Path |
Path.root()
Get the zero-length path.
|
Path |
Paths.RootPath.subpath(int length) |
Path |
Paths.SingleSegmentPath.subpath(int length) |
Path |
Paths.MultiSegmentPath.subpath(int length) |
Path |
Paths.ChildPath.subpath(int length) |
Path |
Path.subpath(int length)
Get a portion of this path that has a specified number of segments.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<Path> |
Path.optionalRoot()
Get an
Optional reference to the root path. |
Optional<Path> |
Paths.RootPath.parent() |
Optional<Path> |
Paths.SingleSegmentPath.parent() |
Optional<Path> |
Paths.MultiSegmentPath.parent() |
Optional<Path> |
Paths.ChildPath.parent() |
Optional<Path> |
Path.parent()
Get the optional parent path.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
Paths.RootPath.append(Path relPath) |
Path |
Paths.SingleSegmentPath.append(Path relPath) |
Path |
Paths.MultiSegmentPath.append(Path relPath) |
Path |
Paths.ChildPath.append(Path relPath) |
Path |
Path.append(Path relPath)
Create a new path consisting of this path appended with the given path that will be treated as a relative path.
|
default Stream<Document.Field> |
Document.children(Path path)
Find a document at the given path and obtain a stream over its fields.
|
(package private) static int |
Paths.copyPathInto(Path path,
String[] segments,
int start) |
default Optional<Value> |
Document.find(Path path)
Attempt to find the value at the given path.
|
default Optional<Value> |
Document.find(Path path,
BiFunction<Path,Integer,Optional<Value>> missingSegment,
Consumer<Path> invalid)
Attempt to find the value at the given path, optionally creating missing segments.
|
default Optional<Value> |
Document.set(Path path,
boolean addIntermediaries,
Value value,
Consumer<Path> invalid)
Set the value at the given path resolved against this document, optionally adding any missing intermediary documents
or arrays based upon the format of the path segments.
|
| Modifier and Type | Method and Description |
|---|---|
default Optional<Value> |
Document.find(Path path,
BiFunction<Path,Integer,Optional<Value>> missingSegment,
Consumer<Path> invalid)
Attempt to find the value at the given path, optionally creating missing segments.
|
default Optional<Value> |
Document.find(Path path,
BiFunction<Path,Integer,Optional<Value>> missingSegment,
Consumer<Path> invalid)
Attempt to find the value at the given path, optionally creating missing segments.
|
default void |
Document.forEach(BiConsumer<Path,Value> consumer) |
default void |
Path.fromRoot(Consumer<Path> consumer)
Call the consumer with the path of every ancestor (except root) down to this path.
|
default Optional<Value> |
Document.set(Path path,
boolean addIntermediaries,
Value value,
Consumer<Path> invalid)
Set the value at the given path resolved against this document, optionally adding any missing intermediary documents
or arrays based upon the format of the path segments.
|
| Constructor and Description |
|---|
ChildPath(Path parent,
String segment) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.