Interface QueryMerger


public interface QueryMerger
A stream operation merger used to apply offsets and limits to provided queries.
Author:
Mislav Milicevic
  • Method Summary

    Modifier and Type
    Method
    Description
    merge(Pipeline<T> pipeline, jakarta.persistence.Query query)
    Inspects the provided pipeline and merges all available operations into the provided query.
  • Method Details

    • merge

      <T> QueryMergeResult<T> merge(Pipeline<T> pipeline, jakarta.persistence.Query query)
      Inspects the provided pipeline and merges all available operations into the provided query. Operations are to be removed from the pipeline if they are merged. The modified pipeline and query are stored in a QueryMergeResult and returned.
      Type Parameters:
      T - root entity
      Parameters:
      pipeline - to inspect and merge
      query - that accepts the merged operations
      Returns:
      a new QueryMergeResult containing the modified Pipeline and Query