Package | Description |
---|---|
org.neo4j.graphdb |
The core graph database API.
|
org.neo4j.graphdb.event |
Event framework.
|
org.neo4j.graphdb.index |
Integrated API for node and relationship indexing.
|
org.neo4j.graphdb.traversal |
Traversal framework.
|
Modifier and Type | Method and Description |
---|---|
Relationship |
Node.createRelationshipTo(Node otherNode,
RelationshipType type)
Creates a relationship between this node and another node.
|
Relationship |
Result.ResultRow.getRelationship(String key) |
Relationship |
GraphDatabaseService.getRelationshipById(long id)
Looks up a relationship by id.
|
Relationship |
Node.getSingleRelationship(RelationshipType type,
Direction dir)
Returns the only relationship of a given type and direction that is
attached to this node, or
null . |
Relationship |
Path.lastRelationship()
Returns the last
Relationship in this path. |
Modifier and Type | Method and Description |
---|---|
Iterable<Relationship> |
PathExpander.expand(Path path,
BranchState<STATE> state)
Returns relationships for a
Path , most commonly from the
Path.endNode() . |
org.neo4j.graphdb.ResourceIterable<Relationship> |
GraphDatabaseService.getAllRelationships()
Returns all relationships in the graph.
|
Iterable<Relationship> |
Node.getRelationships()
Returns all the relationships attached to this node.
|
Iterable<Relationship> |
Node.getRelationships(Direction dir)
|
Iterable<Relationship> |
Node.getRelationships(Direction direction,
RelationshipType... types)
Returns all the relationships of any of the types in
types
that are attached to this node and have the given direction . |
Iterable<Relationship> |
Node.getRelationships(RelationshipType... types)
Returns all the relationships of any of the types in
types
that are attached to this node, regardless of direction. |
Iterable<Relationship> |
Node.getRelationships(RelationshipType type,
Direction dir)
Returns all relationships with the given type and direction that are
attached to this node.
|
Iterable<Relationship> |
Path.relationships()
Returns all the relationships in between the nodes which this path
consists of.
|
Iterable<Relationship> |
Path.reverseRelationships()
Returns all the relationships in between the nodes which this path
consists of in reverse order, i.e.
|
Modifier and Type | Method and Description |
---|---|
PathExpanderBuilder |
PathExpanderBuilder.addRelationshipFilter(Predicate<? super Relationship> filter)
Adds a
Relationship filter. |
Modifier and Type | Method and Description |
---|---|
Iterable<PropertyEntry<Relationship>> |
TransactionData.assignedRelationshipProperties()
Get the properties that had a value assigned on a relationship during the
transaction.
|
Iterable<Relationship> |
TransactionData.createdRelationships()
Get the relationships that were created during the transaction.
|
Iterable<Relationship> |
TransactionData.deletedRelationships()
Get the relationships that were deleted during the transaction.
|
Iterable<PropertyEntry<Relationship>> |
TransactionData.removedRelationshipProperties()
Get the properties that had a value removed from a relationship during
the transaction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TransactionData.isDeleted(Relationship relationship)
Returns whether or not
relationship is deleted in this
transaction. |
Modifier and Type | Method and Description |
---|---|
IndexHits<Relationship> |
ReadableRelationshipIndex.get(String key,
Object valueOrNull,
Node startNodeOrNull,
Node endNodeOrNull)
Returns exact matches from this index, given the key/value pair.
|
IndexHits<Relationship> |
ReadableRelationshipIndex.query(Object queryOrQueryObjectOrNull,
Node startNodeOrNull,
Node endNodeOrNull)
Returns matches from this index based on the supplied query object, which
can be a query string or an implementation-specific query object.
|
IndexHits<Relationship> |
ReadableRelationshipIndex.query(String key,
Object queryOrQueryObjectOrNull,
Node startNodeOrNull,
Node endNodeOrNull)
Returns matches from this index based on the supplied
key and
query object, which can be a query string or an implementation-specific
query object. |
Constructor and Description |
---|
UniqueRelationshipFactory(Index<Relationship> index)
Create a new
UniqueFactory for relationships. |
Modifier and Type | Method and Description |
---|---|
org.neo4j.graphdb.ResourceIterable<Relationship> |
Traverser.relationships()
Represents the traversal in the form of
Relationship s. |
Modifier and Type | Method and Description |
---|---|
String |
Paths.DefaultPathDescriptor.relationshipRepresentation(Path path,
Node from,
Relationship relationship) |
String |
Paths.PathDescriptor.relationshipRepresentation(T path,
Node from,
Relationship relationship)
Returns a string representation of a
Relationship . |
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.