test_class.declarator: uri = URI.create("http://127.0.0.1:80/?key1=val1&key2=val2")
test_class.modifier: private
test_class.original_string: private URI uri = URI.create("http://127.0.0.1:80/?key1=val1&key2=val2");
test_class.type: URI
test_class.var_name: uri
test_class.file: tajo-core/src/test/java/org/apache/tajo/worker/dataserver/TestHttpUtil.java
test_class.identifier: TestHttpUtil
test_case.body: @Test
    public void testBuildQuery() throws UnsupportedEncodingException {
      Map<String,String> params = Maps.newTreeMap();
      params.put("key1", "val1");
      params.put("key2", "val2");
      String query = HttpUtil.buildQuery(params);
      assertEquals(uri.getQuery(), query);
    }
test_case.class_method_signature: TestHttpUtil.testBuildQuery()
test_case.full_signature: @Test public void testBuildQuery()
test_case.identifier: testBuildQuery
test_case.invocations: newTreeMap put put buildQuery assertEquals getQuery
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBuildQuery()
focal_class.file: tajo-core/src/main/java/org/apache/tajo/worker/dataserver/HttpUtil.java
focal_class.identifier: HttpUtil
focal_class.class_method_signature: HttpUtil.getParams(URI uri)
focal_class.full_signature: public static Map<String,String> getParams(URI uri)
focal_class.identifier: getParams
focal_class.modifiers: public static
focal_class.parameters: (URI uri)
focal_class.return: Map<String,String>
focal_class.signature: Map<String,String> getParams(URI uri)
focal_class.class_method_signature: HttpUtil.getParamsFromQuery(String queryString)
focal_class.full_signature: public static Map<String, String> getParamsFromQuery(String queryString)
focal_class.identifier: getParamsFromQuery
focal_class.modifiers: public static
focal_class.parameters: (String queryString)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getParamsFromQuery(String queryString)
focal_class.class_method_signature: HttpUtil.buildQuery(Map<String,String> params)
focal_class.full_signature: public static String buildQuery(Map<String,String> params)
focal_class.identifier: buildQuery
focal_class.modifiers: public static
focal_class.parameters: (Map<String,String> params)
focal_class.return: String
focal_class.signature: String buildQuery(Map<String,String> params)
focal_method.body: public static String buildQuery(Map<String,String> params) throws UnsupportedEncodingException {
      StringBuilder sb = new StringBuilder();
  
      boolean first = true;
      for (Map.Entry<String,String> param : params.entrySet()) {
        if (!first) {
          sb.append("&");
        }
        sb.append(URLEncoder.encode(param.getKey(), "UTF-8")).
            append("=").
            append(URLEncoder.encode(param.getValue(), "UTF-8"));
        first = false;
      }
  
      return sb.toString();
    }
focal_method.class_method_signature: HttpUtil.buildQuery(Map<String,String> params)
focal_method.full_signature: public static String buildQuery(Map<String,String> params)
focal_method.identifier: buildQuery
focal_method.invocations: entrySet append append append append encode getKey encode getValue toString
focal_method.modifiers: public static
focal_method.parameters: (Map<String,String> params)
focal_method.return: String
focal_method.signature: String buildQuery(Map<String,String> params)