private JobSuggestedParamSet getBestParamSet(String jobDefId) {
    JobSuggestedParamSet jobSuggestedParamSetBestParamSet = JobSuggestedParamSet.find.select("*")
        .where()
        .eq(JobSuggestedParamSet.TABLE.jobDefinition + "." + JobDefinition.TABLE.jobDefId, jobDefId)
        .eq(JobSuggestedParamSet.TABLE.isParamSetBest, true)
        .setMaxRows(1)
        .findUnique();

    if (jobSuggestedParamSetBestParamSet == null) {
      jobSuggestedParamSetBestParamSet = JobSuggestedParamSet.find.select("*")
          .where()
          .eq(JobSuggestedParamSet.TABLE.jobDefinition + "." + JobDefinition.TABLE.jobDefId, jobDefId)
          .eq(JobSuggestedParamSet.TABLE.isParamSetDefault, true)
          .setMaxRows(1)
          .findUnique();
    }
    return jobSuggestedParamSetBestParamSet;
  }
For a job, returns the best parameter set of the given job if it exists else  the default parameter set
@param jobDefId Sting JobDefId of the job
@return JobSuggestedParamSet the best parameter set of the given job if it exists else  the default parameter set
app/com/linkedin/drelephant/tuning/AutoTuningAPIHelper.java