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

Classes

class  Segment
 

Public Member Functions

Node getStartNode ()
 get the start node from the path More...
 
Node getEndNode ()
 get the end node from the path More...
 
boolean containNode (Node node)
 determine if path contains the given node More...
 
boolean containRelationship (Relationship relationship)
 determine if path contains the given relationShip More...
 
List< NodegetNodes ()
 get all nodes from the path More...
 
List< RelationshipgetRelationships ()
 get all relationship from the path More...
 
List< Segment > getSegments ()
 get all segments from the path More...
 
int length ()
 get the length of the path More...
 
 PathWrapper (Path path) throws InvalidValueException, UnsupportedEncodingException
 PathWrapper is a wrapper around the Path type returned by nebula-graph. More...
 
String toString ()
 
boolean equals (Object o)
 
int hashCode ()
 
- Public Member Functions inherited from BaseDataObject
String getDecodeType ()
 
BaseDataObject setDecodeType (String decodeType)
 
int getTimezoneOffset ()
 
BaseDataObject setTimezoneOffset (int timezoneOffset)
 

Detailed Description

Definition at line 19 of file PathWrapper.java.

Constructor & Destructor Documentation

◆ PathWrapper()

PathWrapper ( Path  path) throws InvalidValueException, UnsupportedEncodingException

PathWrapper is a wrapper around the Path type returned by nebula-graph.

Parameters
paththe Path type returned by nebula-graph
Exceptions
InvalidValueExceptionif the path is illegal
UnsupportedEncodingExceptionif decode binary failed

Definition at line 173 of file PathWrapper.java.

Member Function Documentation

◆ containNode()

boolean containNode ( Node  node)

determine if path contains the given node

Parameters
nodethe given node
Returns
boolean

Definition at line 122 of file PathWrapper.java.

◆ containRelationship()

boolean containRelationship ( Relationship  relationship)

determine if path contains the given relationShip

Parameters
relationshipthe given relationship
Returns
boolean

Definition at line 131 of file PathWrapper.java.

◆ getEndNode()

Node getEndNode ( )

get the end node from the path

Returns
Node

Definition at line 110 of file PathWrapper.java.

◆ getNodes()

List<Node> getNodes ( )

get all nodes from the path

Returns
the list of Node

Definition at line 139 of file PathWrapper.java.

◆ getRelationships()

List<Relationship> getRelationships ( )

get all relationship from the path

Returns
the List of Relationship

Definition at line 147 of file PathWrapper.java.

◆ getSegments()

List<Segment> getSegments ( )

get all segments from the path

Returns
the List of Segment

Definition at line 155 of file PathWrapper.java.

◆ getStartNode()

Node getStartNode ( )

get the start node from the path

Returns
Node

Definition at line 99 of file PathWrapper.java.

◆ length()

int length ( )

get the length of the path

Returns
int

Definition at line 163 of file PathWrapper.java.


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