Interface MergeQuery<T>

Type Parameters:
T - the content type of files being queried

public interface MergeQuery<T>
A merge query on files.
  • Method Details

    • ofJson

      static MergeQuery<JsonNode> ofJson(MergeSource... mergeSources)
      Returns a newly-created MergeQuery that merges the JSON contents as specified in the mergeSources.
      Parameters:
      mergeSources - the paths of JSON files being merged and indicates whether it is optional
    • ofJson

      static MergeQuery<JsonNode> ofJson(Iterable<MergeSource> mergeSources)
      Returns a newly-created MergeQuery that merges the JSON contents as specified in the mergeSources.
      Parameters:
      mergeSources - the paths of JSON files being merged and indicates whether it is optional
    • ofJsonPath

      static MergeQuery<JsonNode> ofJsonPath(Iterable<MergeSource> mergeSources, String... jsonPaths)
      Returns a newly-created MergeQuery that merges the JSON contents as specified in the mergeSources. Then, the specified JSON path expressions are applied to the content of the MergedEntry.
      Parameters:
      mergeSources - the paths of JSON files being merged and indicates whether it is optional
      jsonPaths - the JSON path expressions to apply
    • ofJsonPath

      static MergeQuery<JsonNode> ofJsonPath(Iterable<MergeSource> mergeSources, Iterable<String> jsonPaths)
      Returns a newly-created MergeQuery that merges the JSON contents as specified in the mergeSources. 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 optional
      jsonPaths - the JSON path expressions to apply
    • of

      static MergeQuery<?> of(QueryType type, Iterable<MergeSource> mergeSources, Iterable<String> expressions)
      Returns a newly-created MergeQuery that merges the JSON contents as specified in the mergeSources. Then, the specified expressions are applied to the content of the MergedEntry.
      Parameters:
      type - the type of the MergeQuery
      mergeSources - the paths of JSON files being merged and indicates whether it is optional
      expressions - the expressions to apply to the content of the MergedEntry
    • type

      QueryType type()
      Returns the type of this MergeQuery.
    • mergeSources

      List<MergeSource> mergeSources()
      Returns the list of MergeSources which will be merged into one entry.
    • expressions

      List<String> expressions()
      Returns the list of the query expressions of this MergeQuery.