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

Public Member Functions

def __init__ (self, row, col_names, decode_type='utf-8')
 
def get_src_id (self)
 
def get_edge_name (self)
 
def get_ranking (self)
 
def get_dst_id (self)
 
def as_relationship (self)
 
def get_prop_names (self)
 
def get_prop_values (self)
 
def __repr__ (self)
 

Static Public Attributes

int PROP_START_INDEX = 4
 

Detailed Description

Definition at line 109 of file BaseResult.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  row,
  col_names,
  decode_type = 'utf-8' 
)
the format is
'''
|edge_name._src|edge_name._type|edge_name._rank|edge_name._dst|edge_name.prop1|edge_name.prop2|
'''

Definition at line 112 of file BaseResult.py.

Member Function Documentation

◆ as_relationship()

def as_relationship (   self)
convert the edge data to structure Relationship

:return: Relationship

Definition at line 183 of file BaseResult.py.

+ Here is the caller graph for this function:

◆ get_dst_id()

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

:return: ValueWrapper

Definition at line 170 of file BaseResult.py.

◆ get_edge_name()

def get_edge_name (   self)
get edge name

:return: edge name

Definition at line 150 of file BaseResult.py.

◆ get_prop_names()

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

:return: list<string>

Definition at line 207 of file BaseResult.py.

◆ get_prop_values()

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

:return: list<ValueWrapper>

Definition at line 214 of file BaseResult.py.

+ Here is the call graph for this function:

◆ get_ranking()

def get_ranking (   self)
get edge ranking

:return: ranking

Definition at line 157 of file BaseResult.py.

◆ get_src_id()

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

:return: ValueWrapper

Definition at line 137 of file BaseResult.py.


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