public Map configMap()

in bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java [2097:2127]


        public Map<String, String> configMap() {
            final HashMap<String, String> map = new HashMap<>();
            if (host != null) {
                map.put("host", host);
            }
            if (port != null) {
                map.put("port", String.valueOf(port));
            }
            if (username != null) {
                map.put("username", username);
            }
            if (password != null) {
                map.put("password", password);
            }
            if (space != null) {
                map.put("space", space);
            }
            if (tag != null) {
                map.put("tag", tag);
            }
            if (keyField != null) {
                map.put("key_field", keyField);
            }
            if (valueField != null) {
                map.put("value_field", valueField);
            }
            if (root != null) {
                map.put("root", root);
            }
            return map;
        }