All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.paifeaturestore.datasource.FeatureDBFactory Maven / Gradle / Ivy

The newest version!
package com.aliyun.openservices.paifeaturestore.datasource;

import com.alicloud.openservices.tablestore.core.utils.IOUtils;

import java.util.HashMap;
import java.util.Map;

public class FeatureDBFactory {
    private static Map featureDBClientHashMap = new HashMap<>();

    public static void register(String name, FeatureDBClient featureDBClient) {
        if (!featureDBClientHashMap.containsKey(name)) {
            featureDBClientHashMap.put(name, featureDBClient);
        }
    }

    public static FeatureDBClient get(String name) {
        return featureDBClientHashMap.get(name);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy