Class RelationshipSelector

  • All Implemented Interfaces:
    Selector

    public class RelationshipSelector
    extends EntitySelector
    Provides a means to filter changes for nodes.
    • Method Detail

      • getType

        @Nullable
        public @Nullable String getType()
        Relationship type of the changed relationship.
        Returns:
        relationship type
      • getStart

        @NotNull
        public @NotNull RelationshipNodeSelector getStart()
        Selector for the start node of the changed relationship.
        Returns:
        relationship node selector
      • getEnd

        @NotNull
        public @NotNull RelationshipNodeSelector getEnd()
        Selector for the end node of the changed relationship.
        Returns:
        relationship node selector
      • getKey

        @NotNull
        public @NotNull Map<String,​Object> getKey()
        Map of property names and values that identifies the relationship. All the property names needs to be part of a Key constraint and values need to match.
        Returns:
        map of property name and values
      • matches

        public boolean matches​(ChangeEvent e)
        Description copied from class: EntitySelector
        Checks if a given change event matches this selector.
        Specified by:
        matches in interface Selector
        Overrides:
        matches in class EntitySelector
        Parameters:
        e - change event to check
        Returns:
        whether the event matches or not