public Settings merge()

in spark-doris-connector/src/main/java/org/apache/doris/spark/cfg/Settings.java [76:92]


    public Settings merge(Properties properties) {
        if (properties == null || properties.isEmpty()) {
            return this;
        }

        Enumeration<?> propertyNames = properties.propertyNames();

        for (; propertyNames.hasMoreElements();) {
            Object prop = propertyNames.nextElement();
            if (prop instanceof String) {
                Object value = properties.get(prop);
                setProperty((String) prop, value.toString());
            }
        }

        return this;
    }