com.aliyun.openservices.paifeaturestore.datasource.FeatureDBFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paifeaturestore-sdk Show documentation
Show all versions of paifeaturestore-sdk Show documentation
SDK for PAI-FeatureStore service
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);
}
}