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 ofMergeSources which will be merged into one entry.static MergeQuery<?> Returns a newly-createdMergeQuerythat merges the JSON contents as specified in themergeSources.static MergeQuery<JsonNode> ofJson(MergeSource... mergeSources) Returns a newly-createdMergeQuerythat merges the JSON contents as specified in themergeSources.static MergeQuery<JsonNode> ofJson(Iterable<MergeSource> mergeSources) Returns a newly-createdMergeQuerythat merges the JSON contents as specified in themergeSources.static MergeQuery<JsonNode> ofJsonPath(Iterable<MergeSource> mergeSources, Iterable<String> jsonPaths) Returns a newly-createdMergeQuerythat merges the JSON contents as specified in themergeSources.static MergeQuery<JsonNode> ofJsonPath(Iterable<MergeSource> mergeSources, String... jsonPaths) Returns a newly-createdMergeQuerythat merges the JSON contents as specified in themergeSources.type()Returns the type of thisMergeQuery.
-
Method Details
-
ofJson
Returns a newly-createdMergeQuerythat 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-createdMergeQuerythat 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-createdMergeQuerythat 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-createdMergeQuerythat 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-createdMergeQuerythat merges the JSON contents as specified in themergeSources. Then, the specified expressions are applied to the content of theMergedEntry.- Parameters:
type- the type of theMergeQuerymergeSources- 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 ofMergeSources which will be merged into one entry. -
expressions
Returns the list of the query expressions of thisMergeQuery.
-