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

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

public static class CDOCompareUtil.CDOComparisonScope.Minimal
extends CDOCompareUtil.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 methods return comparisons that are based on this scope algorithm:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.cdo.compare.CDOCompareUtil.CDOComparisonScope
CDOCompareUtil.CDOComparisonScope.AllContents, CDOCompareUtil.CDOComparisonScope.Minimal
 
Constructor Summary
CDOCompareUtil.CDOComparisonScope.Minimal(CDOView leftView, CDOView rightView, CDOView originView, Set<CDOID> ids)
           
 
Method Summary
 boolean apply(EObject input)
           
 Iterator<? extends EObject> getChildren(EObject eObject)
           
 
Methods inherited from class org.eclipse.emf.cdo.compare.CDOCompareUtil.CDOComparisonScope
getCoveredEObjects, getCoveredResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDOCompareUtil.CDOComparisonScope.Minimal

public CDOCompareUtil.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)


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