类 DefaultSession
- java.lang.Object
-
- com.alibaba.graphscope.interactive.client.impl.DefaultSession
-
- 所有已实现的接口:
EdgeInterface,GraphInterface,JobInterface,ProcedureInterface,QueryServiceInterface,Session,VertexInterface,AutoCloseable
public class DefaultSession extends Object implements Session
A default implementation of the GraphScope interactive session interface. Based on the code generated by OpenAPI Generator.
-
-
方法概要
-
-
-
方法详细资料
-
newInstance
public static DefaultSession newInstance(String uri)
-
newInstance
public static DefaultSession newInstance(String host, int port)
-
getEdge
public Result<EdgeData> getEdge(String graphName, String edgeLabel, String srcLabel, Object srcPrimaryKeyValue, String dstLabel, Object dstPrimaryKeyValue)
- 指定者:
getEdge在接口中EdgeInterface
-
addEdge
public Result<String> addEdge(String graphName, EdgeRequest edgeRequest)
- 指定者:
addEdge在接口中EdgeInterface
-
deleteEdge
public Result<String> deleteEdge(String graphName, String srcLabel, Object srcPrimaryKeyValue, String dstLabel, Object dstPrimaryKeyValue)
- 指定者:
deleteEdge在接口中EdgeInterface
-
updateEdge
public Result<String> updateEdge(String graphName, EdgeRequest edgeRequest)
- 指定者:
updateEdge在接口中EdgeInterface
-
bulkLoading
public Result<JobResponse> bulkLoading(String graphId, SchemaMapping mapping)
- 指定者:
bulkLoading在接口中GraphInterface
-
createGraph
public Result<CreateGraphResponse> createGraph(CreateGraphRequest graph)
- 指定者:
createGraph在接口中GraphInterface
-
deleteGraph
public Result<String> deleteGraph(String graphId)
- 指定者:
deleteGraph在接口中GraphInterface
-
getGraphSchema
public Result<GetGraphSchemaResponse> getGraphSchema(String graphId)
- 指定者:
getGraphSchema在接口中GraphInterface
-
getGraphMeta
public Result<GetGraphResponse> getGraphMeta(String graphId)
- 指定者:
getGraphMeta在接口中GraphInterface
-
getAllGraphs
public Result<List<GetGraphResponse>> getAllGraphs()
- 指定者:
getAllGraphs在接口中GraphInterface
-
cancelJob
public Result<String> cancelJob(String jobId)
- 指定者:
cancelJob在接口中JobInterface
-
getJobStatus
public Result<JobStatus> getJobStatus(String jobId)
- 指定者:
getJobStatus在接口中JobInterface
-
listJobs
public Result<List<JobStatus>> listJobs()
- 指定者:
listJobs在接口中JobInterface
-
createProcedure
public Result<CreateProcedureResponse> createProcedure(String graphId, CreateProcedureRequest procedure)
- 指定者:
createProcedure在接口中ProcedureInterface
-
deleteProcedure
public Result<String> deleteProcedure(String graphId, String procedureName)
- 指定者:
deleteProcedure在接口中ProcedureInterface
-
getProcedure
public Result<GetProcedureResponse> getProcedure(String graphId, String procedureId)
- 指定者:
getProcedure在接口中ProcedureInterface
-
listProcedures
public Result<List<GetProcedureResponse>> listProcedures(String graphId)
- 指定者:
listProcedures在接口中ProcedureInterface
-
updateProcedure
public Result<String> updateProcedure(String graphId, String procedureId, UpdateProcedureRequest procedure)
- 指定者:
updateProcedure在接口中ProcedureInterface
-
callProcedure
public Result<IrResult.CollectiveResults> callProcedure(String graphName, QueryRequest request)
- 指定者:
callProcedure在接口中ProcedureInterface
-
callProcedure
public Result<IrResult.CollectiveResults> callProcedure(QueryRequest request)
- 指定者:
callProcedure在接口中ProcedureInterface
-
callProcedureRaw
public Result<byte[]> callProcedureRaw(String graphName, byte[] request)
- 指定者:
callProcedureRaw在接口中ProcedureInterface
-
callProcedureRaw
public Result<byte[]> callProcedureRaw(byte[] request)
- 指定者:
callProcedureRaw在接口中ProcedureInterface
-
getServiceStatus
public Result<ServiceStatus> getServiceStatus()
- 指定者:
getServiceStatus在接口中QueryServiceInterface
-
restartService
public Result<String> restartService()
- 指定者:
restartService在接口中QueryServiceInterface
-
startService
public Result<String> startService(StartServiceRequest service)
- 指定者:
startService在接口中QueryServiceInterface
-
stopService
public Result<String> stopService()
- 指定者:
stopService在接口中QueryServiceInterface
-
addVertex
public Result<String> addVertex(String graphId, VertexRequest request)
- 指定者:
addVertex在接口中VertexInterface
-
updateVertex
public Result<String> updateVertex(String graphId, VertexRequest request)
- 指定者:
updateVertex在接口中VertexInterface
-
getVertex
public Result<VertexData> getVertex(String graphId, String label, Object primaryKey)
- 指定者:
getVertex在接口中VertexInterface
-
deleteVertex
public Result<String> deleteVertex(String graphId, String label, Object primaryKey)
- 指定者:
deleteVertex在接口中VertexInterface
-
close
public void close() throws ExceptionCloses this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by thetry-with-resources statement.While this interface method is declared to throw
Exception, implementers are strongly encouraged to declare concrete implementations of theclosemethod to throw more specific exceptions, or to throw no exception at all if the close operation cannot fail.Cases where the close operation may fail require careful attention by implementers. It is strongly advised to relinquish the underlying resources and to internally mark the resource as closed, prior to throwing the exception. The
closemethod is unlikely to be invoked more than once and so this ensures that the resources are released in a timely manner. Furthermore it reduces problems that could arise when the resource wraps, or is wrapped, by another resource.Implementers of this interface are also strongly advised to not have the
closemethod throwInterruptedException.This exception interacts with a thread's interrupted status, and runtime misbehavior is likely to occur if an
InterruptedExceptionis suppressed.More generally, if it would cause problems for an exception to be suppressed, the
AutoCloseable.closemethod should not throw it.Note that unlike the
closemethod ofCloseable, thisclosemethod is not required to be idempotent. In other words, calling thisclosemethod more than once may have some visible side effect, unlikeCloseable.closewhich is required to have no effect if called more than once.However, implementers of this interface are strongly encouraged to make their
closemethods idempotent.- 指定者:
close在接口中AutoCloseable- 抛出:
Exception- if this resource cannot be closed
-
-