Class RelationshipPattern

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RelationshipPattern>

    public class RelationshipPattern
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<RelationshipPattern>
    A declared source/target label pattern for a relationship type, used in NoMatchingPatternError
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.error.neo4j.RelationshipPattern type.
      • START_LABEL

        public static final Name START_LABEL
        Name of the hydra.error.neo4j.RelationshipPattern.startLabel field.
      • END_LABEL

        public static final Name END_LABEL
        Name of the hydra.error.neo4j.RelationshipPattern.endLabel field.
      • startLabel

        public final NodeLabel startLabel
        The required start-node label
      • endLabel

        public final NodeLabel endLabel
        The required end-node label
    • Constructor Detail

      • RelationshipPattern

        public RelationshipPattern​(NodeLabel startLabel,
                                   NodeLabel endLabel)
        Constructs an immutable RelationshipPattern.
        Parameters:
        startLabel - The required start-node label
        endLabel - The required end-node label