public static class CDOComparisonScope.Minimal extends CDOComparisonScope
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:
CDOComparisonScope.AllContents, CDOComparisonScope.Minimal
Constructor and Description |
---|
CDOComparisonScope.Minimal(CDOView leftView,
CDOView rightView,
CDOView originView,
Set<CDOID> ids) |
Modifier and Type | Method and Description |
---|---|
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) |
getCoveredEObjects, getCoveredResources, isResolveProxies, setResolveProxies
public boolean apply(EObject input)
protected void collectRequiredParentID(CDOView view, CDOID id, Set<CDOID> requiredParentIDs)
public static IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView)
public static IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView, Set<CDOID> ids)
public static IComparisonScope create(CDOTransaction transaction)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.