org.eclipse.emf.cdo.compare
Class CDOComparisonScope.Minimal

java.lang.Object
  extended by AbstractComparisonScope
      extended by org.eclipse.emf.cdo.compare.CDOComparisonScope
          extended by org.eclipse.emf.cdo.compare.CDOComparisonScope.Minimal
Enclosing class:
CDOComparisonScope

public static class CDOComparisonScope.Minimal
extends CDOComparisonScope

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:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.cdo.compare.CDOComparisonScope
CDOComparisonScope.AllContents, CDOComparisonScope.Minimal
 
Constructor Summary
CDOComparisonScope.Minimal(CDOView leftView, CDOView rightView, CDOView originView, Set<CDOID> ids)
           
 
Method Summary
 boolean apply(EObject input)
           
protected  void collectRequiredParentID(CDOView view, CDOID id, Set<CDOID> requiredParentIDs)
           
static IComparisonScope create(CDOTransaction transaction)
           
static IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView)
           
static IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView, Set<CDOID> ids)
           
 Iterator<? extends EObject> getChildren(EObject eObject)
           
 
Methods inherited from class org.eclipse.emf.cdo.compare.CDOComparisonScope
getCoveredEObjects, getCoveredResources, isResolveProxies, setResolveProxies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDOComparisonScope.Minimal

public CDOComparisonScope.Minimal(CDOView leftView,
                                  CDOView rightView,
                                  CDOView originView,
                                  Set<CDOID> ids)
Method Detail

getChildren

public Iterator<? extends EObject> getChildren(EObject eObject)

apply

public boolean apply(EObject input)

collectRequiredParentID

protected void collectRequiredParentID(CDOView view,
                                       CDOID id,
                                       Set<CDOID> requiredParentIDs)

create

public static IComparisonScope create(CDOView leftView,
                                      CDOView rightView,
                                      CDOView[] originView)

create

public static IComparisonScope create(CDOView leftView,
                                      CDOView rightView,
                                      CDOView[] originView,
                                      Set<CDOID> ids)

create

public static IComparisonScope create(CDOTransaction transaction)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.