| Package | Description |
|---|---|
| org.neo4j.graphdb |
The core graph database API.
|
| org.neo4j.graphdb.schema |
Optional graph schema including indexes and constraints.
|
| org.neo4j.graphdb.traversal |
Traversal framework.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DynamicRelationshipType
Deprecated.
use
withName(String) instead |
| Modifier and Type | Method and Description |
|---|---|
RelationshipType |
Relationship.getType()
Returns the type of this relationship.
|
static RelationshipType |
RelationshipType.withName(String name)
Instantiates a new RelationshipType with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
org.neo4j.graphdb.ResourceIterable<RelationshipType> |
GraphDatabaseService.getAllRelationshipTypes()
Returns all relationship types currently in the underlying store.
|
org.neo4j.graphdb.ResourceIterable<RelationshipType> |
GraphDatabaseService.getAllRelationshipTypesInUse()
Returns all relationship types currently in the underlying store.
|
Iterable<RelationshipType> |
Node.getRelationshipTypes()
Returns relationship types which this node has one more relationships
for.
|
| Modifier and Type | Method and Description |
|---|---|
PathExpanderBuilder |
PathExpanderBuilder.add(RelationshipType type)
Add a pair of
type and Direction.BOTH to the PathExpander configuration. |
PathExpanderBuilder |
PathExpanderBuilder.add(RelationshipType type,
Direction direction)
Add a pair of
type and direction to the PathExpander configuration. |
Relationship |
Node.createRelationshipTo(Node otherNode,
RelationshipType type)
Creates a relationship between this node and another node.
|
static <STATE> PathExpander<STATE> |
PathExpanders.forConstantDirectionWithTypes(RelationshipType... types)
An expander forcing constant relationship direction
|
static <STATE> PathExpander<STATE> |
PathExpanders.forType(RelationshipType type)
A very permissive
PathExpander that follows type relationships in any direction. |
static <STATE> PathExpander<STATE> |
PathExpanders.forTypeAndDirection(RelationshipType type,
Direction direction)
|
static <STATE> PathExpander<STATE> |
PathExpanders.forTypesAndDirections(RelationshipType type1,
Direction direction1,
RelationshipType type2,
Direction direction2,
Object... more)
|
int |
Node.getDegree(RelationshipType type)
Returns the number of relationships of a given
type connected to this node. |
int |
Node.getDegree(RelationshipType type,
Direction direction)
Returns the number of relationships of a given
type and direction
connected to this node. |
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.
|
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. |
boolean |
Node.hasRelationship(Direction direction,
RelationshipType... types)
Returns
true if there are any relationships of any of the
types in types attached to this node (for the given
direction), false otherwise. |
boolean |
Node.hasRelationship(RelationshipType... types)
Returns
true if there are any relationships of any of the
types in types attached to this node (regardless of
direction), false otherwise. |
boolean |
Node.hasRelationship(RelationshipType type,
Direction dir)
Returns
true if there are any relationships of the given
relationship type and direction attached to this node, false
otherwise. |
boolean |
Relationship.isType(RelationshipType type)
Indicates whether this relationship is of the type
type. |
PathExpanderBuilder |
PathExpanderBuilder.remove(RelationshipType type)
Remove expansion of
type in any direction from the PathExpander configuration. |
| Modifier and Type | Method and Description |
|---|---|
RelationshipType |
ConstraintDefinition.getRelationshipType()
This accessor method returns a relationship type which this constraint is associated with if this constraint
has type
ConstraintType.UNIQUENESS or ConstraintType.NODE_PROPERTY_EXISTENCE. |
| Modifier and Type | Method and Description |
|---|---|
Iterable<ConstraintDefinition> |
Schema.getConstraints(RelationshipType type) |
| Modifier and Type | Method and Description |
|---|---|
static <STATE> PathEvaluator<STATE> |
Evaluators.includeWhereLastRelationshipTypeIs(RelationshipType type,
RelationshipType... orAnyOfTheseTypes) |
static <STATE> PathEvaluator<STATE> |
Evaluators.includeWhereLastRelationshipTypeIs(RelationshipType type,
RelationshipType... orAnyOfTheseTypes) |
static <STATE> PathEvaluator<STATE> |
Evaluators.lastRelationshipTypeIs(Evaluation evaluationIfMatch,
Evaluation evaluationIfNoMatch,
RelationshipType type,
RelationshipType... orAnyOfTheseTypes)
|
static <STATE> PathEvaluator<STATE> |
Evaluators.lastRelationshipTypeIs(Evaluation evaluationIfMatch,
Evaluation evaluationIfNoMatch,
RelationshipType type,
RelationshipType... orAnyOfTheseTypes)
|
static <STATE> PathEvaluator<STATE> |
Evaluators.pruneWhereLastRelationshipTypeIs(RelationshipType type,
RelationshipType... orAnyOfTheseTypes) |
static <STATE> PathEvaluator<STATE> |
Evaluators.pruneWhereLastRelationshipTypeIs(RelationshipType type,
RelationshipType... orAnyOfTheseTypes) |
TraversalDescription |
TraversalDescription.relationships(RelationshipType type)
Adds
type to the list of relationship types to traverse. |
TraversalDescription |
TraversalDescription.relationships(RelationshipType type,
Direction direction)
Adds
type to the list of relationship types to traverse in
the given direction. |
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.