Package org.neo4j.cdc.client.selector
Class RelationshipNodeSelector
- java.lang.Object
-
- org.neo4j.cdc.client.selector.RelationshipNodeSelector
-
public class RelationshipNodeSelector extends Object
Describes a selector for relationship start and end nodes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelationshipNodeSelector.RelationshipNodeSelectorBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asMap()Returns a map representation of this selector to be sent over to server.static RelationshipNodeSelector.RelationshipNodeSelectorBuilderbuilder()Returns a builder instance forRelationshipNodeSelector.booleanequals(Object o)@NotNull Map<String,Object>getKey()Map of property names and values that identifies the node.@NotNull Set<String>getLabels()Set of labels that needs to be present on the node.inthashCode()booleanisEmpty()Checks whether any filter is set on this selector.
-
-
-
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
-
builder
public static RelationshipNodeSelector.RelationshipNodeSelectorBuilder builder()
Returns a builder instance forRelationshipNodeSelector.- Returns:
- builder instance
-
-