Class SearchQueryResultTransformer<T,R>
java.lang.Object
io.camunda.search.clients.transformers.query.SearchQueryResultTransformer<T,R>
-
Constructor Summary
ConstructorsConstructorDescriptionSearchQueryResultTransformer(ServiceTransformer<T, R> documentToEntityMapper) -
Method Summary
Modifier and TypeMethodDescriptionio.camunda.search.query.SearchQueryResult<R> apply(SearchQueryResponse<T> value, boolean reverse) Applies the transformation to the search query response.
-
Constructor Details
-
SearchQueryResultTransformer
-
-
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 (seeTypedSearchQueryTransformer.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.
-