Package org.neo4j.cdc.client.model
Class NodeEvent
- java.lang.Object
-
- org.neo4j.cdc.client.model.EntityEvent<NodeState>
-
- org.neo4j.cdc.client.model.NodeEvent
-
- All Implemented Interfaces:
Event
public class NodeEvent extends EntityEvent<NodeState>
Describes a change event related to a node.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static NodeEventfromMap(Map<?,?> map)Map<String,List<Map<String,Object>>>getKeys()The keys identifying the changed node, grouped per label.List<String>getLabels()List of node labels before the change was applied.inthashCode()StringtoString()-
Methods inherited from class org.neo4j.cdc.client.model.EntityEvent
getAfter, getBefore, getElementId, getEventType, getOperation
-
-
-
-
Method Detail
-
getLabels
public List<String> getLabels()
List of node labels before the change was applied. It contains the complete set of labels regardless of the CDC mode.- Returns:
- labels
-
getKeys
public Map<String,List<Map<String,Object>>> getKeys()
The keys identifying the changed node, grouped per label. This requires key constraints defined on the changed entities.- Returns:
- map of labels to list of key properties on that label
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classEntityEvent<NodeState>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEntityEvent<NodeState>
-
-