Package org.neo4j.cdc.client.selector
Class RelationshipSelector.RelationshipSelectorBuilder
- java.lang.Object
-
- org.neo4j.cdc.client.selector.EntitySelector.Builder<RelationshipSelector.RelationshipSelectorBuilder,RelationshipSelector>
-
- org.neo4j.cdc.client.selector.RelationshipSelector.RelationshipSelectorBuilder
-
- Enclosing class:
- RelationshipSelector
public static class RelationshipSelector.RelationshipSelectorBuilder extends EntitySelector.Builder<RelationshipSelector.RelationshipSelectorBuilder,RelationshipSelector>
-
-
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 RelationshipSelectorbuild()Build the desired selector.RelationshipSelector.RelationshipSelectorBuilderwithEnd(RelationshipNodeSelector end)Set a filter on relationship end node on the selector to be built.RelationshipSelector.RelationshipSelectorBuilderwithKey(Map<String,Object> key)Set a filter of key properties on the selector to be built.RelationshipSelector.RelationshipSelectorBuilderwithStart(RelationshipNodeSelector start)Set a filter on relationship start node on the selector to be built.RelationshipSelector.RelationshipSelectorBuilderwithType(String type)Set a filter on relationship type 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
-
withType
public RelationshipSelector.RelationshipSelectorBuilder withType(String type)
Set a filter on relationship type on the selector to be built.- Parameters:
type- relationship type- Returns:
- builder
-
withStart
public RelationshipSelector.RelationshipSelectorBuilder withStart(RelationshipNodeSelector start)
Set a filter on relationship start node on the selector to be built.- Parameters:
start- relationship node selector- Returns:
- builder
-
withEnd
public RelationshipSelector.RelationshipSelectorBuilder withEnd(RelationshipNodeSelector end)
Set a filter on relationship end node on the selector to be built.- Parameters:
end- relationship node selector- Returns:
- builder
-
withKey
public RelationshipSelector.RelationshipSelectorBuilder 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 RelationshipSelector build()
Description copied from class:EntitySelector.BuilderBuild the desired selector.- Overrides:
buildin classEntitySelector.Builder<RelationshipSelector.RelationshipSelectorBuilder,RelationshipSelector>- Returns:
- selector
-
-