APISonar


com.dremio.service.jobs.JobIndexKeys.UI

> com > dremio > service > jobs > JobIndexKeys > UI
com APIs dremio APIs service APIs jobs APIs JobIndexKeys APIs UI APIs

Example 1
public Map<String, String> getLinks() {
    List<String> fullPathList = datasetConfig.getFullPathList();
    PhysicalDatasetPath datasetPath = new PhysicalDatasetPath(fullPathList);

    Map<String, String> links = new HashMap<>();
    links.put("self", datasetPath.toUrlPath());
    links.put("query", datasetPath.getQueryUrlPath());
    final JobFilters jobFilters = new JobFilters()
      .addFilter(JobIndexKeys.ALL_DATASETS, datasetPath.toString())
      .addFilter(JobIndexKeys.QUERY_TYPE, JobIndexKeys.UI, JobIndexKeys.EXTERNAL);
    links.put("jobs", jobFilters.toUrl());
    return links;
  }
Example 2
private String getJobsUrl() {
    final NamespaceKey datasetPath = new NamespaceKey(fullPath);
    final JobFilters jobFilters = new JobFilters()
      .addFilter(JobIndexKeys.ALL_DATASETS, datasetPath.toString())
      .addFilter(JobIndexKeys.QUERY_TYPE, JobIndexKeys.UI, JobIndexKeys.EXTERNAL);
    return jobFilters.toUrl();
  }