NebulaGraph Java Client
release-3.8
|
MetaManager is a manager for meta info, such as spaces,tags and edges. More...
Public Member Functions | |
MetaManager (List< HostAddress > address) throws TException, ClientServerIncompatibleException, UnknownHostException | |
init the meta info cache | |
MetaManager (List< HostAddress > address, int timeout, int connectionRetry, int executionRetry, boolean enableSSL, SSLParam sslParam) throws TException, ClientServerIncompatibleException, UnknownHostException | |
init the meta info cache with more config | |
void | close () |
close meta client | |
int | getSpaceId (String spaceName) throws IllegalArgumentException |
get space id More... | |
SpaceItem | getSpace (String spaceName) throws IllegalArgumentException |
get space item More... | |
int | getTagId (String spaceName, String tagName) throws IllegalArgumentException |
get tag id More... | |
TagItem | getTag (String spaceName, String tagName) throws IllegalArgumentException |
get tag More... | |
int | getEdgeType (String spaceName, String edgeName) throws IllegalArgumentException |
get edge type More... | |
EdgeItem | getEdge (String spaceName, String edgeName) throws IllegalArgumentException |
get Edge More... | |
HostAddr | getLeader (String spaceName, int part) throws IllegalArgumentException |
get part leader More... | |
List< Integer > | getSpaceParts (String spaceName) throws IllegalArgumentException |
get all parts of one space More... | |
Map< Integer, List< HostAddr > > | getPartsAlloc (String spaceName) throws IllegalArgumentException |
get all parts alloc of one space More... | |
void | updateLeader (String spaceName, int part, HostAddr newLeader) throws IllegalArgumentException |
cache new leader for part More... | |
Set< HostAddr > | listHosts () |
get all storage addresses | |
int | getConnectionRetry () |
int | getTimeout () |
int | getExecutionRetry () |
MetaManager is a manager for meta info, such as spaces,tags and edges.
Definition at line 34 of file MetaManager.java.
EdgeItem getEdge | ( | String | spaceName, |
String | edgeName | ||
) | throws IllegalArgumentException |
get Edge
spaceName | nebula graph space name |
edgeName | nebula edge name |
Implements MetaCache.
Definition at line 240 of file MetaManager.java.
int getEdgeType | ( | String | spaceName, |
String | edgeName | ||
) | throws IllegalArgumentException |
get edge type
spaceName | nebula graph space name |
edgeName | nebula edge name |
Definition at line 228 of file MetaManager.java.
HostAddr getLeader | ( | String | spaceName, |
int | part | ||
) | throws IllegalArgumentException |
get part leader
spaceName | nebula graph space name |
part | nebula part id |
Definition at line 266 of file MetaManager.java.
Map<Integer, List<HostAddr> > getPartsAlloc | ( | String | spaceName | ) | throws IllegalArgumentException |
get all parts alloc of one space
spaceName | nebula graph space name |
Implements MetaCache.
Definition at line 306 of file MetaManager.java.
SpaceItem getSpace | ( | String | spaceName | ) | throws IllegalArgumentException |
get space item
spaceName | nebula graph space name |
Implements MetaCache.
Definition at line 167 of file MetaManager.java.
int getSpaceId | ( | String | spaceName | ) | throws IllegalArgumentException |
get space id
spaceName | nebula space name |
Definition at line 156 of file MetaManager.java.
List<Integer> getSpaceParts | ( | String | spaceName | ) | throws IllegalArgumentException |
get all parts of one space
spaceName | nebula graph space name |
Definition at line 295 of file MetaManager.java.
TagItem getTag | ( | String | spaceName, |
String | tagName | ||
) | throws IllegalArgumentException |
get tag
spaceName | nebula space name |
tagName | nebula tag name |
Implements MetaCache.
Definition at line 201 of file MetaManager.java.
int getTagId | ( | String | spaceName, |
String | tagName | ||
) | throws IllegalArgumentException |
get tag id
spaceName | nebula graph space name |
tagName | nebula tag name |
Definition at line 189 of file MetaManager.java.
void updateLeader | ( | String | spaceName, |
int | part, | ||
HostAddr | newLeader | ||
) | throws IllegalArgumentException |
cache new leader for part
spaceName | nebula graph space |
part | nebula part |
newLeader | nebula part new leader |
Definition at line 329 of file MetaManager.java.