public class Relationship extends BaseDataObject
| Constructor and Description |
|---|
Relationship(Edge edge)
Relationship is a wrapper around the Edge type returned by nebula-graph
|
| Modifier and Type | Method and Description |
|---|---|
ValueWrapper |
dstId()
get the dst id from the relationship
|
String |
edgeName()
get edge name from the relationship
|
boolean |
equals(Object o) |
int |
hashCode() |
List<String> |
keys()
get all property name from the relationship
|
HashMap<String,ValueWrapper> |
properties()
get property names and values from the relationship
|
long |
ranking()
get ranking from the relationship
|
ValueWrapper |
srcId()
get the src id from the relationship
|
String |
toString() |
List<ValueWrapper> |
values()
get property values from the relationship
|
getDecodeType, getTimezoneOffset, setDecodeType, setTimezoneOffsetpublic Relationship(Edge edge)
edge - the Edge type returned by nebula-graphpublic ValueWrapper srcId()
public ValueWrapper dstId()
public String edgeName()
public long ranking()
public List<String> keys() throws UnsupportedEncodingException
UnsupportedEncodingException - if decode binary failedpublic List<ValueWrapper> values()
public HashMap<String,ValueWrapper> properties() throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2022. All rights reserved.