Class RelationshipNodeSelector


  • public class RelationshipNodeSelector
    extends Object
    Describes a selector for relationship start and end nodes.
    • Method Detail

      • getLabels

        @NotNull
        public @NotNull Set<String> getLabels()
        Set of labels that needs to be present on the node.
        Returns:
        set of properties
      • getKey

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

        public Map<String,​Object> asMap()
        Returns a map representation of this selector to be sent over to server.
        Returns:
        map representation
      • isEmpty

        public boolean isEmpty()
        Checks whether any filter is set on this selector.
        Returns:
        true if either labels or key is specified
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object