Package org.neo4j.cdc.client.selector
Class NodeSelector.NodeSelectorBuilder
- java.lang.Object
-
- org.neo4j.cdc.client.selector.EntitySelector.Builder<NodeSelector.NodeSelectorBuilder,NodeSelector>
-
- org.neo4j.cdc.client.selector.NodeSelector.NodeSelectorBuilder
-
- Enclosing class:
- NodeSelector
public static class NodeSelector.NodeSelectorBuilder extends EntitySelector.Builder<NodeSelector.NodeSelectorBuilder,NodeSelector>
-
-
Field Summary
-
Fields inherited from class org.neo4j.cdc.client.selector.EntitySelector.Builder
authenticatedUser, changesTo, excludeProperties, executingUser, includeProperties, operation, txMetadata
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeSelectorbuild()Build the desired selector.NodeSelector.NodeSelectorBuilderwithKey(Map<String,Object> key)Set a filter of key properties on the selector to be built.NodeSelector.NodeSelectorBuilderwithLabels(Set<String> labels)Set a filter of labels on the selector to be built.-
Methods inherited from class org.neo4j.cdc.client.selector.EntitySelector.Builder
excludingProperties, includingProperties, withAuthenticatedUser, withChangesTo, withExecutingUser, withOperation, withTxMetadata
-
-
-
-
Method Detail
-
withLabels
public NodeSelector.NodeSelectorBuilder withLabels(Set<String> labels)
Set a filter of labels on the selector to be built. All the labels need to be present on the changed node for a match.- Parameters:
labels- set of labels- Returns:
- builder
-
withKey
public NodeSelector.NodeSelectorBuilder withKey(Map<String,Object> key)
Set a filter of key properties on the selector to be built. All the property names needs to be part of a Key constraint and values need to match.- Parameters:
key- map of property names and values- Returns:
- builder
-
build
public NodeSelector build()
Description copied from class:EntitySelector.BuilderBuild the desired selector.- Overrides:
buildin classEntitySelector.Builder<NodeSelector.NodeSelectorBuilder,NodeSelector>- Returns:
- selector
-
-