All Superinterfaces:
Refactoring

public interface Merge extends Refactoring
Refactoring that allows merging of entities.
Since:
1.10.0
Author:
Michael J. Simons
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A property merge policy defines how properties with the same name defined on several nodes to be merged should be handled.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static Merge
    nodes(String sourceQuery)
    Provides a refactoring merging a set of nodes.
    static Merge
    nodes(String sourceQuery, List<Merge.PropertyMergePolicy> mergePolicies)
    Provides a refactoring merging a set of nodes.

    Methods inherited from interface ac.simons.neo4j.migrations.core.refactorings.Refactoring

    apply
  • Method Details

    • nodes

      static Merge nodes(String sourceQuery)
      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 via nodes(String, List)
      Parameters:
      sourceQuery - The source query identifying the set of nodes to be merged.
      Returns:
      The refactoring ready to use
    • nodes

      static Merge nodes(String sourceQuery, List<Merge.PropertyMergePolicy> mergePolicies)
      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