Package com.linecorp.centraldogma.common
Interface Query<T>
- Type Parameters:
T
- the content type of a file being queried
- All Superinterfaces:
Function<T,
T>
A query on a file.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of the query expressions of thisQuery
.Deprecated.static Query
<?> Returns a newly-createdQuery
that applies a series of expressions to the content.Returns a newly-createdQuery
that retrieves the JSON content as it is.ofJsonPath
(String path, Iterable<String> jsonPaths) Returns a newly-createdQuery
that applies a series of JSON path expressions to the content.ofJsonPath
(String path, String... jsonPaths) Returns a newly-createdQuery
that applies a series of JSON path expressions to the content.Returns a newly-createdQuery
that retrieves the textual content as it is.path()
Returns the path of the file being queried on.type()
Returns the type of thisQuery
.
-
Method Details
-
identity
Deprecated.UseofText(String)
orofJson(String)
.Returns a newly-createdQuery
that retrieves the content as it is.- Parameters:
path
- the path of a file being queried on
-
ofText
Returns a newly-createdQuery
that retrieves the textual content as it is.- Parameters:
path
- the path of a file being queried on
-
ofJson
Returns a newly-createdQuery
that retrieves the JSON content as it is.- Parameters:
path
- the path of a file being queried on
-
ofJsonPath
Returns a newly-createdQuery
that applies a series of JSON path expressions to the content.- Parameters:
path
- the path of a file being queried onjsonPaths
- the JSON path expressions to apply
-
ofJsonPath
Returns a newly-createdQuery
that applies a series of JSON path expressions to the content.- Parameters:
path
- the path of a file being queried onjsonPaths
- the JSON path expressions to apply
-
of
Returns a newly-createdQuery
that applies a series of expressions to the content.- Parameters:
type
- the type of theQuery
path
- the path of a file being queried onexpressions
- the expressions to apply
-
path
String path()Returns the path of the file being queried on. -
type
QueryType type()Returns the type of thisQuery
. -
expressions
Returns the list of the query expressions of thisQuery
.
-
ofText(String)
orofJson(String)
.