NebulaGraph Python Client  release-3.8
VertexData Class Reference
+ Inheritance diagram for VertexData:
+ Collaboration diagram for VertexData:

Public Member Functions

def __init__ (self, row, col_names, decode_type='utf-8')
 
def get_id (self)
 
def as_node (self)
 
def get_prop_names (self)
 
def get_prop_values (self)
 
def __repr__ (self)
 

Static Public Attributes

int PROP_START_INDEX_with_vid = 2
 
int PROP_START_INDEX = 1
 

Detailed Description

Definition at line 14 of file BaseResult.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  row,
  col_names,
  decode_type = 'utf-8' 
)
the format is
'''
|tag_name._vid|tag_name.prop1|tag_name.prop2|
'''

Definition at line 19 of file BaseResult.py.

Member Function Documentation

◆ as_node()

def as_node (   self)
convert the vertex data to structure Node

:return: Node

Definition at line 59 of file BaseResult.py.

+ Here is the caller graph for this function:

◆ get_id()

def get_id (   self)
get vertex id, if the space vid_type is int, you can use get_id().as_int(),
if the space vid_type is fixed_string, you can use get_id().as_string()

:return: ValueWrapper

Definition at line 46 of file BaseResult.py.

◆ get_prop_names()

def get_prop_names (   self)
get all prop names from the vertex data

:return: list<string>

Definition at line 84 of file BaseResult.py.

◆ get_prop_values()

def get_prop_values (   self)
get all prop values from the vertex data

:return: list<ValueWrapper>

Definition at line 91 of file BaseResult.py.

+ Here is the call graph for this function:

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