com.aliyun.openservices.paifeaturestore.datasource.IGraphFactory 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.aliyun.igraph.client.gremlin.driver.Client;
import java.util.HashMap;
import java.util.Map;
public class IGraphFactory {
private static Map igraphMap = new HashMap<>();
public static void register(String name, Client otsClient) {
if (!igraphMap.containsKey(name)) {
igraphMap.put(name, otsClient);
}
}
public static Client get(String name) {
return igraphMap.get(name);
}
}