Class SearchQueryResultTransformer<T,R>

java.lang.Object
io.camunda.search.clients.transformers.query.SearchQueryResultTransformer<T,R>

public final class SearchQueryResultTransformer<T,R> extends Object
  • Constructor Details

    • SearchQueryResultTransformer

      public SearchQueryResultTransformer(ServiceTransformer<T,R> documentToEntityMapper)
  • Method Details

    • apply

      public io.camunda.search.query.SearchQueryResult<R> apply(SearchQueryResponse<T> value, boolean reverse)
      Applies the transformation to the search query response.
      Parameters:
      value - The value to be transformed.
      reverse - Indicates whether to reverse the order of the hits. This is required when the query requests a previous page (see TypedSearchQueryTransformer.apply(TypedSearchQuery)). In such cases, the search query is executed with reverse sorting, and the response hits must be reversed again to restore the correct order.
      Returns:
      The transformed search query result.