public class PathWrapper extends BaseDataObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PathWrapper.Segment |
| Constructor and Description |
|---|
PathWrapper(Path path)
PathWrapper is a wrapper around the Path type returned by nebula-graph
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containNode(Node node)
determine if path contains the given node
|
boolean |
containRelationship(Relationship relationship)
determine if path contains the given relationShip
|
boolean |
equals(Object o) |
Node |
getEndNode()
get the end node from the path
|
List<Node> |
getNodes()
get all nodes from the path
|
List<Relationship> |
getRelationships()
get all relationship from the path
|
List<PathWrapper.Segment> |
getSegments()
get all segments from the path
|
Node |
getStartNode()
get the start node from the path
|
int |
hashCode() |
int |
length()
get the length of the path
|
String |
toString() |
getDecodeType, getTimezoneOffset, setDecodeType, setTimezoneOffsetpublic PathWrapper(Path path) throws InvalidValueException, UnsupportedEncodingException
path - the Path type returned by nebula-graphInvalidValueException - if the path is illegalUnsupportedEncodingException - if decode binary failedpublic Node getStartNode()
public Node getEndNode()
public boolean containNode(Node node)
node - the given nodepublic boolean containRelationship(Relationship relationship)
relationship - the given relationshippublic List<Relationship> getRelationships()
public List<PathWrapper.Segment> getSegments()
public int length()
Copyright © 2022. All rights reserved.