org.eclipse.emf.cdo.compare
Class CDOComparisonScope.Minimal
java.lang.Object
AbstractComparisonScope
org.eclipse.emf.cdo.compare.CDOComparisonScope
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:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CDOComparisonScope.Minimal
public CDOComparisonScope.Minimal(CDOView leftView,
CDOView rightView,
CDOView originView,
Set<CDOID> ids)
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.