public class GlobalGraphOperations extends Object
getAllNodes()
.Modifier and Type | Method and Description |
---|---|
static GlobalGraphOperations |
at(GraphDatabaseService db)
Get a
GlobalGraphOperations for the given db . |
ResourceIterable<Label> |
getAllLabels()
Returns all labels currently in the underlying store.
|
ResourceIterable<Node> |
getAllNodes()
Returns all nodes in the graph.
|
ResourceIterable<Node> |
getAllNodesWithLabel(Label label)
Deprecated.
Use
GraphDatabaseService.findNodes(Label) instead |
ResourceIterable<String> |
getAllPropertyKeys()
Returns all property keys currently in the underlying store.
|
Iterable<Relationship> |
getAllRelationships()
Returns all relationships in the graph.
|
Iterable<RelationshipType> |
getAllRelationshipTypes()
Returns all relationship types currently in the underlying store.
|
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 ResourceIterable<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 graph).public ResourceIterable<Label> getAllLabels()
ResourceIterable
is closed correctly and as soon as possible
inside your transaction to avoid potential blocking of write operations.public ResourceIterable<String> getAllPropertyKeys()
ResourceIterable
is closed correctly and as soon as possible
inside your transaction to avoid potential blocking of write operations.@Deprecated public ResourceIterable<Node> getAllNodesWithLabel(Label label)
GraphDatabaseService.findNodes(Label)
insteadnodes
with a specific label
.
Please take care that the returned ResourceIterable
is closed correctly and as soon as possible
inside your transaction to avoid potential blocking of write operations.Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.