public class Node extends BaseDataObject
| Constructor and Description |
|---|
Node(Vertex vertex)
Node is a wrapper around the Vertex type returned by nebula-graph
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ValueWrapper |
getId()
get vid from the node
|
int |
hashCode() |
boolean |
hasLabel(String tagName)
Used to be compatible with older versions of interfaces
|
boolean |
hasTagName(String tagName)
determine if node contains the given tag
|
List<String> |
keys(String tagName)
get property names from the node
|
List<String> |
labels()
Used to be compatible with older versions of interfaces
|
HashMap<String,ValueWrapper> |
properties(String tagName)
get property names and values from the node
|
List<String> |
tagNames()
get all tag name from the node
|
String |
toString() |
List<ValueWrapper> |
values(String tagName)
get property values from the node
|
getDecodeType, getTimezoneOffset, setDecodeType, setTimezoneOffsetpublic Node(Vertex vertex) throws UnsupportedEncodingException
vertex - the vertex returned by nebula-graphUnsupportedEncodingException - if decoded binary failedpublic ValueWrapper getId()
public List<String> tagNames()
public List<String> labels()
public boolean hasTagName(String tagName)
tagName - the tag namepublic boolean hasLabel(String tagName)
public List<ValueWrapper> values(String tagName)
tagName - the tag namepublic List<String> keys(String tagName) throws UnsupportedEncodingException
tagName - the given tag nameUnsupportedEncodingException - decode error exceptionpublic HashMap<String,ValueWrapper> properties(String tagName) throws UnsupportedEncodingException
tagName - the given tag nameUnsupportedEncodingException - decode error exceptionCopyright © 2022. All rights reserved.