Package com.linecorp.centraldogma.common
Interface MergeQuery<T>
- Type Parameters:
T
- the content type of files being queried
public interface MergeQuery<T>
A merge query on files.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of the query expressions of thisMergeQuery
.Returns the list ofMergeSource
s which will be merged into one entry.static MergeQuery
<?> Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
.static MergeQuery
<JsonNode> ofJson
(MergeSource... mergeSources) Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
.static MergeQuery
<JsonNode> ofJson
(Iterable<MergeSource> mergeSources) Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
.static MergeQuery
<JsonNode> ofJsonPath
(Iterable<MergeSource> mergeSources, Iterable<String> jsonPaths) Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
.static MergeQuery
<JsonNode> ofJsonPath
(Iterable<MergeSource> mergeSources, String... jsonPaths) Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
.type()
Returns the type of thisMergeQuery
.
-
Method Details
-
ofJson
Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
.- Parameters:
mergeSources
- the paths of JSON files being merged and indicates whether it is optional
-
ofJson
Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
.- Parameters:
mergeSources
- the paths of JSON files being merged and indicates whether it is optional
-
ofJsonPath
Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
. Then, the specified JSON path expressions are applied to the content of theMergedEntry
.- Parameters:
mergeSources
- the paths of JSON files being merged and indicates whether it is optionaljsonPaths
- the JSON path expressions to apply
-
ofJsonPath
static MergeQuery<JsonNode> ofJsonPath(Iterable<MergeSource> mergeSources, Iterable<String> jsonPaths) Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
. Then, the specified JSON path expressions are applied to the content.- Parameters:
mergeSources
- the paths of JSON files being merged and indicates whether it is optionaljsonPaths
- the JSON path expressions to apply
-
of
static MergeQuery<?> of(QueryType type, Iterable<MergeSource> mergeSources, Iterable<String> expressions) Returns a newly-createdMergeQuery
that merges the JSON contents as specified in themergeSources
. Then, the specified expressions are applied to the content of theMergedEntry
.- Parameters:
type
- the type of theMergeQuery
mergeSources
- the paths of JSON files being merged and indicates whether it is optionalexpressions
- the expressions to apply to the content of theMergedEntry
-
type
QueryType type()Returns the type of thisMergeQuery
. -
mergeSources
List<MergeSource> mergeSources()Returns the list ofMergeSource
s which will be merged into one entry. -
expressions
Returns the list of the query expressions of thisMergeQuery
.
-