Database Reference
In-Depth Information
GlobalGraphOperations
.at(dbService);
//Getting All Nodes
for (Node node : operations.getAllNodes()) {
System.out.println("Node Labels.....");
//Get All Labels associated with that Node
for (Label label : node.getLabels()) {
System.out.println(label.name());
}
System.out.println("Node Properties = ");
//Get All Keys/ Value associated with that Node
for (String key : node.getPropertyKeys()) {
System.out.println(key + " = " +
node.getProperty(key));
}
}
}
}
}
Tip
Downloading the example code
You can download the example code files from your account at http://www.packtpub.com
for all the Packt Publishing topics you have purchased. If you purchased this topic else-
where, you can visit http://www.packtpub.com/support and register to have the files e-
mailed directly to you.
Compile the preceding code and execute it from the IDE itself. The preceding code will
dump the complete data on the console.
In order to understand the preceding code, follow the comments provided before every
line of the code.
Search WWH ::




Custom Search