public class Galaxybase extends Object
构造器和说明 |
---|
Galaxybase() |
限定符和类型 | 方法和说明 |
---|---|
static Driver |
connect(String uri,
String username,
String password)
连接到数据库
|
static Graph |
driver(Driver driver,
String graphName)
连接到图服务
|
static Graph |
driver(String uri,
String graphName)
连接到图服务
|
static Graph |
driver(String uri,
String graphName,
String token)
连接到图服务
|
static Graph |
driver(String uri,
String graphName,
String username,
String password)
连接到图服务
|
static Graph |
driver(URI uri,
String graphName)
连接到图服务
|
static Graph |
driver(URI uri,
String graphName,
String username,
String password)
连接到图服务
|
static Collection<String> |
graphs(Driver driver)
获取图名字
|
public static Driver connect(String uri, String username, String password)
uri
- 链接地址username
- 用户名password
- 密码Graph
public static Graph driver(Driver driver, String graphName)
driver
- 链接graphName
- 图名称Graph
public static Graph driver(String uri, String graphName)
uri
- 链接地址graphName
- 图名称Graph
public static Graph driver(String uri, String graphName, String token)
uri
- 链接地址graphName
- 图名称token
- 用户登录获得的tokenGraph
public static Graph driver(String uri, String graphName, String username, String password)
uri
- 链接地址graphName
- 图名称username
- 用户名password
- 密码Graph
public static Graph driver(URI uri, String graphName)
uri
- 链接地址graphName
- 图名称Graph
public static Graph driver(URI uri, String graphName, String username, String password)
uri
- 链接地址graphName
- 图名称username
- 用户名password
- 密码Graph
public static Collection<String> graphs(Driver driver)
driver
- 连接