|
Neo4j Advanced | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.graphmatching.AbstractPatternObject<Relationship>
org.neo4j.graphmatching.PatternRelationship
public class PatternRelationship
Represents a pattern for matching a Relationship
.
Field Summary |
---|
Fields inherited from class org.neo4j.graphmatching.AbstractPatternObject |
---|
label |
Method Summary | |
---|---|
Direction |
getDirectionFrom(PatternNode fromNode)
Get the direction in which relationships are discovered using this relationship pattern from the specified node. |
PatternNode |
getFirstNode()
Get the first pattern node that this pattern relationship relates. |
PatternNode |
getOtherNode(PatternNode node)
Get the PatternNode that this pattern relationship relates, that
is not the specified node. |
PatternNode |
getSecondNode()
Get the second pattern node that this pattern relationship relates. |
RelationshipType |
getType()
Get the RelationshipType a relationship must have in order to
match this pattern relationship. |
boolean |
isOptional()
Does this pattern relationship represent a relationship that has to exist in the subgraph to consider the subgraph a match of the pattern, or is it an optional relationship. |
String |
toString()
|
Methods inherited from class org.neo4j.graphmatching.AbstractPatternObject |
---|
addPropertyConstraint, getAssociation, getLabel, getPropertyConstraints, setAssociation, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public PatternNode getOtherNode(PatternNode node)
PatternNode
that this pattern relationship relates, that
is not the specified node.
node
- one of the PatternNode
s this pattern relationship
relates.
public PatternNode getFirstNode()
public PatternNode getSecondNode()
public boolean isOptional()
true
if this pattern relationship represents an
optional relationship, false
if it represents a
required relationship.public RelationshipType getType()
RelationshipType
a relationship must have in order to
match this pattern relationship. Will return null
if a
relationship with any RelationshipType
will match.
RelationshipType
of this relationship pattern.public Direction getDirectionFrom(PatternNode fromNode)
outgoing
, incoming
,
or both
.
fromNode
- the pattern node to find the direction of this pattern
relationship from.
public String toString()
toString
in class Object
|
Neo4j Advanced | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |