Class QueryOptimizationServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.query.QueryOptimizationServiceImpl
All Implemented Interfaces:
QueryOptimizationService

@Service public class QueryOptimizationServiceImpl extends Object implements QueryOptimizationService
  • Constructor Details

    • QueryOptimizationServiceImpl

      public QueryOptimizationServiceImpl()
  • Method Details

    • optimizeQuery

      public com.atlassian.query.Query optimizeQuery(@Nullable com.atlassian.query.Query query)
      Description copied from interface: QueryOptimizationService
      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()
      Specified by:
      optimizeQuery in interface QueryOptimizationService
      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.