public class Node
extends java.lang.Object
Nodes are comprised of an id, labels and primitive/String properties.
Node
id's SHOULD NOT BE USED. THe Neo4J Server can reclaim id's. Id's are only provided to connect nodes
to other nodes via Relationship's. Relationships connect nodes by their id's but can be thought of as
transient and only consistent with the whole graph itself.
At this stage anything that can be deciphered by the JSON library will be held as a property.
| Constructor and Description |
|---|
Node(long id,
java.lang.String[] labels,
java.util.Map<java.lang.String,java.lang.Object> properties)
Creates a new Node.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getId()
Returns this node's id.
|
java.lang.String[] |
getLabels()
Returns this node's labels.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns a map of properties stored in this Node.
|
public Node(long id,
java.lang.String[] labels,
java.util.Map<java.lang.String,java.lang.Object> properties)
Note: Because this api's default implementation is known there is no safe constructor copying.
id - The id of this node.labels - An array of strings that label this Node.properties - The properties stored in this node.public long getId()
public java.lang.String[] getLabels()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()