NebulaGraph Python Client
release-3.8
|
Public Member Functions | |
def | __init__ (self, addresses, timeout) |
def | open (self) |
def | list_tags (self, space_id) |
def | list_edges (self, space_id) |
def | list_spaces (self) |
def | list_hosts (self) |
def | get_parts_alloc (self, space_id) |
def | close (self) |
def | update_leader (self, leader) |
def | __del__ (self) |
Definition at line 36 of file __init__.py.
def close | ( | self | ) |
close the connection :eturn: void
Definition at line 225 of file __init__.py.
def get_parts_alloc | ( | self, | |
space_id | |||
) |
get all parts info of the specified space id :param space_id: :eturn: map<PartitionID, list<HostAddr>>
Definition at line 194 of file __init__.py.
def list_edges | ( | self, | |
space_id | |||
) |
get all version edge :param space_id: the specified space id :return: list<EdgeItem>
Definition at line 100 of file __init__.py.
def list_hosts | ( | self | ) |
get all online hosts info :eturn: list<HostItem>
Definition at line 160 of file __init__.py.
def list_spaces | ( | self | ) |
get all spaces info :eturn: list<IdName>
Definition at line 131 of file __init__.py.
def list_tags | ( | self, | |
space_id | |||
) |
get all version tags :param space_id: the specified space id :eturn: list<TagItem>
Definition at line 69 of file __init__.py.
def open | ( | self | ) |
open the connection to connect meta service :eturn: void
Definition at line 52 of file __init__.py.
def update_leader | ( | self, | |
leader | |||
) |
update the leader meta info when happen leader change :param leader: the address of meta leader :eturn:
Definition at line 236 of file __init__.py.