Interface Merge
- All Superinterfaces:
Refactoring
Refactoring that allows merging of entities.
- Since:
- 1.10.0
- Author:
- Michael J. Simons
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Aproperty merge policy
defines how properties with the same name defined on several nodes to be merged should be handled. -
Method Summary
Methods inherited from interface ac.simons.neo4j.migrations.core.refactorings.Refactoring
apply
-
Method Details
-
nodes
Provides a refactoring merging a set of nodes. The custom query must return nodes as one node per record. The returned refactoring won't provide any policies how do deal with duplicate properties. If you are in doubt, specify one vianodes(String, List)
- Parameters:
sourceQuery
- The source query identifying the set of nodes to be merged.- Returns:
- The refactoring ready to use
-
nodes
Provides a refactoring merging a set of nodes. The custom query must return nodes as one node per record.- Parameters:
sourceQuery
- The source query identifying the set of nodes to be merged.mergePolicies
- The policies that describe how to deal with duplicated properties.- Returns:
- The refactoring ready to use
-