Package org.neo4j.cdc.client.selector
Class NodeSelector
- java.lang.Object
-
- org.neo4j.cdc.client.selector.EntitySelector
-
- org.neo4j.cdc.client.selector.NodeSelector
-
- All Implemented Interfaces:
Selector
public class NodeSelector extends EntitySelector
Provides a means to filter changes for nodes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeSelector.NodeSelectorBuilder-
Nested classes/interfaces inherited from class org.neo4j.cdc.client.selector.EntitySelector
EntitySelector.Builder<T extends EntitySelector.Builder<?,?>,S extends EntitySelector>
-
-
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 NodeSelector.NodeSelectorBuilderbuilder()Returns a builder instance forNodeSelector.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()booleanmatches(ChangeEvent e)Checks if a given change event matches this selector.-
Methods inherited from class org.neo4j.cdc.client.selector.EntitySelector
applyProperties, getAuthenticatedUser, getChangesTo, getExcludeProperties, getExecutingUser, getIncludeProperties, getOperation, getTxMetadata
-
-
-
-
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
-
matches
public boolean matches(ChangeEvent e)
Description copied from class:EntitySelectorChecks if a given change event matches this selector.- Specified by:
matchesin interfaceSelector- Overrides:
matchesin classEntitySelector- Parameters:
e- change event to check- Returns:
- whether the event matches or not
-
asMap
public Map<String,Object> asMap()
Description copied from class:EntitySelectorReturns a map representation of this selector to be sent over to server.- Specified by:
asMapin interfaceSelector- Overrides:
asMapin classEntitySelector- Returns:
- map representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classEntitySelector
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEntitySelector
-
builder
public static NodeSelector.NodeSelectorBuilder builder()
Returns a builder instance forNodeSelector.- Returns:
- builder instance
-
-