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

Public Member Functions

 Relationship (Edge edge)
 Relationship is a wrapper around the Edge type returned by nebula-graph. More...
 
ValueWrapper srcId ()
 get the src id from the relationship More...
 
ValueWrapper dstId ()
 get the dst id from the relationship More...
 
String edgeName ()
 get edge name from the relationship More...
 
long ranking ()
 get ranking from the relationship More...
 
List< String > keys () throws UnsupportedEncodingException
 get all property name from the relationship More...
 
List< ValueWrappervalues ()
 get property values from the relationship More...
 
HashMap< String, ValueWrapperproperties () throws UnsupportedEncodingException
 get property names and values from the relationship More...
 
boolean equals (Object o)
 
int hashCode ()
 
String toString ()
 
- Public Member Functions inherited from BaseDataObject
String getDecodeType ()
 
BaseDataObject setDecodeType (String decodeType)
 
int getTimezoneOffset ()
 
BaseDataObject setTimezoneOffset (int timezoneOffset)
 

Detailed Description

Definition at line 17 of file Relationship.java.

Constructor & Destructor Documentation

◆ Relationship()

Relationship ( Edge  edge)

Relationship is a wrapper around the Edge type returned by nebula-graph.

Parameters
edgethe Edge type returned by nebula-graph

Definition at line 24 of file Relationship.java.

Member Function Documentation

◆ dstId()

ValueWrapper dstId ( )

get the dst id from the relationship

Returns
ValueWrapper, if int id, you can call srcId().asLong(), if string id, you can call srcId().asString()

Definition at line 46 of file Relationship.java.

◆ edgeName()

String edgeName ( )

get edge name from the relationship

Returns
String

Definition at line 55 of file Relationship.java.

◆ keys()

List<String> keys ( ) throws UnsupportedEncodingException

get all property name from the relationship

Returns
the List of String
Exceptions
UnsupportedEncodingExceptionif decode binary failed

Definition at line 72 of file Relationship.java.

◆ properties()

HashMap<String, ValueWrapper> properties ( ) throws UnsupportedEncodingException

get property names and values from the relationship

Returns
the HashMap, key is String, value is ValueWrapper>

Definition at line 96 of file Relationship.java.

◆ ranking()

long ranking ( )

get ranking from the relationship

Returns
long

Definition at line 63 of file Relationship.java.

◆ srcId()

ValueWrapper srcId ( )

get the src id from the relationship

Returns
ValueWrapper, if int id, you can call srcId().asLong(), if string id, you can call srcId().asString()

Definition at line 36 of file Relationship.java.

◆ values()

List<ValueWrapper> values ( )

get property values from the relationship

Returns
the List of ValueWrapper

Definition at line 84 of file Relationship.java.


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