Class CDOComparisonScope.Minimal

  • All Implemented Interfaces:
    com.google.common.base.Predicate<EObject>, java.util.function.Predicate<EObject>, Adapter, Adapter.Internal, org.eclipse.emf.compare.scope.IComparisonScope, org.eclipse.emf.compare.scope.IComparisonScope2, org.eclipse.emf.compare.utils.IDiagnosable
    Enclosing class:
    CDOComparisonScope

    public static class CDOComparisonScope.Minimal
    extends CDOComparisonScope
    implements com.google.common.base.Predicate<EObject>
    Takes a view/transaction and returns matches only for the changed elements of the entire content tree of its root resource. The advantage of this scope is that CDO-specific mechanisms are used to efficiently (remotely) determine the set of changed objects. Only those and their container objects are considered as matches, making this scope scale seamlessly with the overall size of a repository. The following method returns comparisons that are based on this scope algorithm:
    Author:
    Eike Stepper
    • Method Detail

      • getChildren

        public java.util.Iterator<? extends EObject> getChildren​(EObject eObject)
        Specified by:
        getChildren in interface org.eclipse.emf.compare.scope.IComparisonScope
      • apply

        public boolean apply​(EObject input)
        Specified by:
        apply in interface com.google.common.base.Predicate<EObject>
      • collectRequiredParentID

        protected void collectRequiredParentID​(CDOView view,
                                               CDOID id,
                                               java.util.Set<CDOID> requiredParentIDs)
      • create

        public static org.eclipse.emf.compare.scope.IComparisonScope create​(CDOView leftView,
                                                                            CDOView rightView,
                                                                            CDOView[] originView)
      • create

        public static org.eclipse.emf.compare.scope.IComparisonScope create​(CDOView leftView,
                                                                            CDOView rightView,
                                                                            CDOView[] originView,
                                                                            CDOViewOpener viewOpener)
        Since:
        4.3
      • create

        public static org.eclipse.emf.compare.scope.IComparisonScope create​(CDOView leftView,
                                                                            CDOView rightView,
                                                                            CDOView[] originView,
                                                                            java.util.Set<CDOID> ids)
      • create

        public static org.eclipse.emf.compare.scope.IComparisonScope create​(CDOView leftView,
                                                                            CDOView rightView,
                                                                            CDOView[] originView,
                                                                            java.util.Set<CDOID> ids,
                                                                            CDOViewOpener viewOpener)
        Since:
        4.3
      • create

        public static org.eclipse.emf.compare.scope.IComparisonScope create​(CDOTransaction transaction)
      • create

        public static org.eclipse.emf.compare.scope.IComparisonScope create​(CDOTransaction transaction,
                                                                            CDOViewOpener viewOpener)
        Since:
        4.3