类 Driver
- java.lang.Object
-
- com.alibaba.graphscope.interactive.client.Driver
-
public class Driver extends Object
The entrypoint for all graphscope operations.
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static Driverconnect(String uri)static Driverconnect(String host, int port)SessiongetDefaultSession()org.apache.tinkerpop.gremlin.driver.ClientgetGremlinClient()org.apache.commons.lang3.tuple.Pair<String,Integer>getGremlinEndpoint()Get the gremlin endpoint.StringgetNeo4jEndpoint()org.neo4j.driver.SessiongetNeo4jSession()Create a neo4j session with default session config.org.neo4j.driver.SessiongetNeo4jSession(org.neo4j.driver.SessionConfig sessionConfig)Create a neo4j session with the given session config.Sessionsession()Create a GraphScope session
-
-
-
方法详细资料
-
session
public Session session()
Create a GraphScope session- 返回:
-
getDefaultSession
public Session getDefaultSession()
-
getNeo4jSession
public org.neo4j.driver.Session getNeo4jSession(org.neo4j.driver.SessionConfig sessionConfig)
Create a neo4j session with the given session config.- 参数:
sessionConfig-- 返回:
-
getNeo4jSession
public org.neo4j.driver.Session getNeo4jSession()
Create a neo4j session with default session config.- 返回:
- a neo4j session
-
getNeo4jEndpoint
public String getNeo4jEndpoint()
-
getGremlinEndpoint
public org.apache.commons.lang3.tuple.Pair<String,Integer> getGremlinEndpoint()
Get the gremlin endpoint.- 返回:
- a pair of host and port
-
getGremlinClient
public org.apache.tinkerpop.gremlin.driver.Client getGremlinClient()
-
-