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

Public Member Functions

 Node (Vertex vertex) throws UnsupportedEncodingException
 Node is a wrapper around the Vertex type returned by nebula-graph. More...
 
ValueWrapper getId ()
 get vid from the node More...
 
List< String > tagNames ()
 get all tag name from the node More...
 
List< String > labels ()
 Used to be compatible with older versions of interfaces. More...
 
boolean hasTagName (String tagName)
 determine if node contains the given tag More...
 
boolean hasLabel (String tagName)
 Used to be compatible with older versions of interfaces. More...
 
List< ValueWrappervalues (String tagName)
 get property values from the node More...
 
List< String > keys (String tagName) throws UnsupportedEncodingException
 get property names from the node More...
 
HashMap< String, ValueWrapperproperties (String tagName) throws UnsupportedEncodingException
 get property names and values from the node 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 18 of file Node.java.

Constructor & Destructor Documentation

◆ Node()

Node ( Vertex  vertex) throws UnsupportedEncodingException

Node is a wrapper around the Vertex type returned by nebula-graph.

Parameters
vertexthe vertex returned by nebula-graph
Exceptions
UnsupportedEncodingExceptionif decoded binary failed

Definition at line 29 of file Node.java.

Member Function Documentation

◆ getId()

ValueWrapper getId ( )

get vid from the node

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

Definition at line 45 of file Node.java.

◆ hasLabel()

boolean hasLabel ( String  tagName)

Used to be compatible with older versions of interfaces.

Returns
tboolean

Definition at line 78 of file Node.java.

◆ hasTagName()

boolean hasTagName ( String  tagName)

determine if node contains the given tag

Parameters
tagNamethe tag name
Returns
boolean

Definition at line 70 of file Node.java.

◆ keys()

List<String> keys ( String  tagName) throws UnsupportedEncodingException

get property names from the node

Parameters
tagNamethe given tag name
Returns
the list of property names
Exceptions
UnsupportedEncodingExceptiondecode error exception

Definition at line 105 of file Node.java.

◆ labels()

List<String> labels ( )

Used to be compatible with older versions of interfaces.

Returns
the list of tag name

Definition at line 61 of file Node.java.

◆ properties()

HashMap<String, ValueWrapper> properties ( String  tagName) throws UnsupportedEncodingException

get property names and values from the node

Parameters
tagNamethe given tag name
Returns
the HashMap, key is property name, value is ValueWrapper
Exceptions
UnsupportedEncodingExceptiondecode error exception

Definition at line 124 of file Node.java.

◆ tagNames()

List<String> tagNames ( )

get all tag name from the node

Returns
the list of tag name

Definition at line 53 of file Node.java.

◆ values()

List<ValueWrapper> values ( String  tagName)

get property values from the node

Parameters
tagNamethe tag name
Returns
the list of ValueWrapper

Definition at line 87 of file Node.java.


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