NebulaGraph Java Client  release-3.6
MetaClient Class Reference
+ Inheritance diagram for MetaClient:
+ Collaboration diagram for MetaClient:

Public Member Functions

 MetaClient (String host, int port) throws UnknownHostException
 
 MetaClient (HostAddress address) throws UnknownHostException
 
 MetaClient (List< HostAddress > addresses) throws UnknownHostException
 
 MetaClient (List< HostAddress > addresses, int connectionRetry, int executionRetry) throws UnknownHostException
 
 MetaClient (List< HostAddress > addresses, int timeout, int connectionRetry, int executionRetry) throws UnknownHostException
 
 MetaClient (List< HostAddress > addresses, int timeout, int connectionRetry, int executionRetry, boolean enableSSL, SSLParam sslParam) throws UnknownHostException
 
void connect () throws TException, ClientServerIncompatibleException
 
void close ()
 close transport
 
synchronized List< IdName > getSpaces () throws TException, ExecuteFailedException
 get all spaces More...
 
synchronized SpaceItem getSpace (String spaceName) throws TException, ExecuteFailedException
 get one space More...
 
synchronized List< TagItem > getTags (String spaceName) throws TException, ExecuteFailedException
 get all tags of spaceName More...
 
synchronized Schema getTag (String spaceName, String tagName) throws TException, ExecuteFailedException
 get schema of specific tag More...
 
synchronized List< EdgeItem > getEdges (String spaceName) throws TException, ExecuteFailedException
 get all edges of specific space More...
 
synchronized Schema getEdge (String spaceName, String edgeName) throws TException, ExecuteFailedException
 get schema of specific edgeRow More...
 
synchronized Map< Integer, List< HostAddr > > getPartsAlloc (String spaceName) throws ExecuteFailedException, TException
 Get all parts and the address in a space Store in this.parts. More...
 
synchronized Set< HostAddr > listHosts ()
 get all Storaged servers
 
- Public Member Functions inherited from AbstractMetaClient
 AbstractMetaClient (List< HostAddress > addresses, int timeout, int connectionRetry, int executionRetry) throws UnknownHostException
 
int getConnectionRetry ()
 
int getExecutionRetry ()
 
int getTimeout ()
 

Static Public Attributes

static final int LATEST_SCHEMA_VERSION = -1
 

Additional Inherited Members

- Protected Attributes inherited from AbstractMetaClient
final List< HostAddressaddresses
 
final int connectionRetry
 
final int executionRetry
 
final int timeout
 
THeaderProtocol protocol
 
THeaderTransport transport
 

Detailed Description

Definition at line 65 of file MetaClient.java.

Member Function Documentation

◆ getEdge()

synchronized Schema getEdge ( String  spaceName,
String  edgeName 
) throws TException, ExecuteFailedException

get schema of specific edgeRow

Parameters
spaceNamenebula graph space
edgeNamenebula edgeRow name
Returns
Schema

Definition at line 377 of file MetaClient.java.

+ Here is the call graph for this function:

◆ getEdges()

synchronized List<EdgeItem> getEdges ( String  spaceName) throws TException, ExecuteFailedException

get all edges of specific space

Parameters
spaceNamenebula graph space
Returns
EdgeItem list

Definition at line 342 of file MetaClient.java.

+ Here is the call graph for this function:

◆ getPartsAlloc()

synchronized Map<Integer, List<HostAddr> > getPartsAlloc ( String  spaceName) throws ExecuteFailedException, TException

Get all parts and the address in a space Store in this.parts.

Parameters
spaceNameNebula space name
Returns

Definition at line 417 of file MetaClient.java.

+ Here is the call graph for this function:

◆ getSpace()

synchronized SpaceItem getSpace ( String  spaceName) throws TException, ExecuteFailedException

get one space

Parameters
spaceNamenebula graph space
Returns
SpaceItem

Definition at line 232 of file MetaClient.java.

+ Here is the caller graph for this function:

◆ getSpaces()

synchronized List<IdName> getSpaces ( ) throws TException, ExecuteFailedException

get all spaces

Returns

Definition at line 200 of file MetaClient.java.

◆ getTag()

synchronized Schema getTag ( String  spaceName,
String  tagName 
) throws TException, ExecuteFailedException

get schema of specific tag

Parameters
spaceNamenebula graph space
tagNamenebula tag name
Returns
Schema

Definition at line 303 of file MetaClient.java.

+ Here is the call graph for this function:

◆ getTags()

synchronized List<TagItem> getTags ( String  spaceName) throws TException, ExecuteFailedException

get all tags of spaceName

Parameters
spaceNamenebula graph space
Returns
TagItem list

Definition at line 266 of file MetaClient.java.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: