|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.tooling.GlobalGraphOperations
public class GlobalGraphOperations
A tool for doing global operations, for example getAllNodes().
| Method Summary | |
|---|---|
static GlobalGraphOperations |
at(GraphDatabaseService db)
Get a GlobalGraphOperations for the given db. |
Iterable<Node> |
getAllNodes()
Returns all nodes in the graph. |
ResourceIterable<Node> |
getAllNodesWithLabel(Label label)
Returns all nodes with a specific label. |
Iterable<Relationship> |
getAllRelationships()
Returns all relationships in the graph. |
Iterable<RelationshipType> |
getAllRelationshipTypes()
Returns all relationship types currently in the underlying store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static GlobalGraphOperations at(GraphDatabaseService db)
GlobalGraphOperations for the given db.
db - the GraphDatabaseService to get global operations for.
GlobalGraphOperations for the given db.public Iterable<Node> getAllNodes()
public Iterable<Relationship> getAllRelationships()
public Iterable<RelationshipType> getAllRelationshipTypes()
node.createRelationshipTo(...). Note that this method is
guaranteed to return all known relationship types, but it does not guarantee that it won't
return more than that (e.g. it can return "historic" relationship types that no longer
have any relationships in the node space).
public ResourceIterable<Node> getAllNodesWithLabel(Label label)
nodes with a specific label.
label - the Label to return nodes for.
Iterable containing nodes with a specific label.
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||