Interface QueryOptimizationService
- All Known Implementing Classes:
QueryOptimizationServiceImpl
public interface QueryOptimizationService
Methods to for optimizing
Query objects.-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.query.QueryoptimizeQuery(com.atlassian.query.Query query) Optimizes both unreleasedVersions() and releasedVersions() functions.
-
Method Details
-
optimizeQuery
com.atlassian.query.Query optimizeQuery(@Nullable com.atlassian.query.Query query) Optimizes both unreleasedVersions() and releasedVersions() functions. The optimization is performed if two conditions have been met: functions has no agruments and projects can be determined from the query. Then those projects are passed as an argument to unreleasedVersions()- Parameters:
query- to be optimized.- Returns:
- optimized query object or same query if optimization could not be done or null if passed query is null.
-