test_class.declarator: API_VERSION = "v1"
test_class.modifier: private static final
test_class.original_string: private static final String API_VERSION = "v1";
test_class.type: String
test_class.var_name: API_VERSION
test_class.declarator: BASE_URL = "https://api.keen.io"
test_class.modifier: private static final
test_class.original_string: private static final String BASE_URL = "https://api.keen.io";
test_class.type: String
test_class.var_name: BASE_URL
test_class.declarator: PROJECT_ID = "0123456789abcdef"
test_class.modifier: private static final
test_class.original_string: private static final String PROJECT_ID = "0123456789abcdef";
test_class.type: String
test_class.var_name: PROJECT_ID
test_class.declarator: DATASET = "testing-things"
test_class.modifier: private static final
test_class.original_string: private static final String DATASET = "testing-things";
test_class.type: String
test_class.var_name: DATASET
test_class.declarator: builder = new RequestUrlBuilder(API_VERSION, BASE_URL)
test_class.modifier: private final
test_class.original_string: private final RequestUrlBuilder builder = new RequestUrlBuilder(API_VERSION, BASE_URL);
test_class.type: RequestUrlBuilder
test_class.var_name: builder
test_class.file: query/src/test/java/io/keen/client/java/RequestUrlBuilderTest.java
test_class.identifier: RequestUrlBuilderTest
test_case.body: @Test
      public void shouldCreateSpecificDatasetResultUrl() {
          URL result = builder.getDatasetsUrl(PROJECT_ID, DATASET, true, Collections.<String, Object>emptyMap());
  
          assertThat(result.toString(), equalTo("https://api.keen.io/v1/projects/0123456789abcdef/datasets/testing-things/results"));
      }
test_case.class_method_signature: RequestUrlBuilderTest.shouldCreateSpecificDatasetResultUrl()
test_case.full_signature: @Test public void shouldCreateSpecificDatasetResultUrl()
test_case.identifier: shouldCreateSpecificDatasetResultUrl
test_case.invocations: getDatasetsUrl emptyMap assertThat toString equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCreateSpecificDatasetResultUrl()
focal_class.declarator: apiVersion
focal_class.modifier: private final
focal_class.original_string: private final String apiVersion;
focal_class.type: String
focal_class.var_name: apiVersion
focal_class.declarator: baseUrl
focal_class.modifier: private final
focal_class.original_string: private final String baseUrl;
focal_class.type: String
focal_class.var_name: baseUrl
focal_class.file: query/src/main/java/io/keen/client/java/RequestUrlBuilder.java
focal_class.identifier: RequestUrlBuilder
focal_class.class_method_signature: RequestUrlBuilder.RequestUrlBuilder(String apiVersion, String baseUrl)
focal_class.full_signature:   RequestUrlBuilder(String apiVersion, String baseUrl)
focal_class.identifier: RequestUrlBuilder
focal_class.parameters: (String apiVersion, String baseUrl)
focal_class.signature:  RequestUrlBuilder(String apiVersion, String baseUrl)
focal_class.class_method_signature: RequestUrlBuilder.getAnalysisUrl(String projectId, String analysisPath)
focal_class.full_signature:  URL getAnalysisUrl(String projectId, String analysisPath)
focal_class.identifier: getAnalysisUrl
focal_class.parameters: (String projectId, String analysisPath)
focal_class.return: URL
focal_class.signature: URL getAnalysisUrl(String projectId, String analysisPath)
focal_class.class_method_signature: RequestUrlBuilder.getDatasetsUrl(String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams)
focal_class.full_signature:  URL getDatasetsUrl(String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams)
focal_class.identifier: getDatasetsUrl
focal_class.parameters: (String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams)
focal_class.return: URL
focal_class.signature: URL getDatasetsUrl(String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams)
focal_class.class_method_signature: RequestUrlBuilder.createBaseDatasetsUrl(String projectId)
focal_class.full_signature: private StringBuilder createBaseDatasetsUrl(String projectId)
focal_class.identifier: createBaseDatasetsUrl
focal_class.modifiers: private
focal_class.parameters: (String projectId)
focal_class.return: StringBuilder
focal_class.signature: StringBuilder createBaseDatasetsUrl(String projectId)
focal_class.class_method_signature: RequestUrlBuilder.appendDatasetName(StringBuilder url, String datasetName)
focal_class.full_signature: private void appendDatasetName(StringBuilder url, String datasetName)
focal_class.identifier: appendDatasetName
focal_class.modifiers: private
focal_class.parameters: (StringBuilder url, String datasetName)
focal_class.return: void
focal_class.signature: void appendDatasetName(StringBuilder url, String datasetName)
focal_class.class_method_signature: RequestUrlBuilder.appendQueryParams(StringBuilder url, Map<String, ?> queryParams)
focal_class.full_signature: private void appendQueryParams(StringBuilder url, Map<String, ?> queryParams)
focal_class.identifier: appendQueryParams
focal_class.modifiers: private
focal_class.parameters: (StringBuilder url, Map<String, ?> queryParams)
focal_class.return: void
focal_class.signature: void appendQueryParams(StringBuilder url, Map<String, ?> queryParams)
focal_class.class_method_signature: RequestUrlBuilder.appendFetchResults(StringBuilder url)
focal_class.full_signature: private void appendFetchResults(StringBuilder url)
focal_class.identifier: appendFetchResults
focal_class.modifiers: private
focal_class.parameters: (StringBuilder url)
focal_class.return: void
focal_class.signature: void appendFetchResults(StringBuilder url)
focal_method.body: URL getDatasetsUrl(String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams) throws KeenQueryClientException {
          try {
              StringBuilder url = createBaseDatasetsUrl(projectId);
  
              if (datasetName != null) {
                  appendDatasetName(url, datasetName);
                  if (fetchResults) {
                      appendFetchResults(url);
                  }
              }
  
              if (queryParams != null && !queryParams.isEmpty()) {
                  appendQueryParams(url, queryParams);
              }
              return new URL(url.toString());
          } catch (IOException ex) {
              Logger.getLogger(RequestUrlBuilder.class.getName())
                      .log(Level.SEVERE, "Failed to format dataset URL.", ex);
  
              throw new KeenQueryClientException("Failed to format dataset URL.", ex);
          }
      }
focal_method.class_method_signature: RequestUrlBuilder.getDatasetsUrl(String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams)
focal_method.full_signature:  URL getDatasetsUrl(String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams)
focal_method.identifier: getDatasetsUrl
focal_method.invocations: createBaseDatasetsUrl appendDatasetName appendFetchResults isEmpty appendQueryParams toString log getLogger getName
focal_method.parameters: (String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams)
focal_method.return: URL
focal_method.signature: URL getDatasetsUrl(String projectId, String datasetName, boolean fetchResults, Map<String, ?> queryParams)