public static class CDOComparisonScope.Minimal extends CDOComparisonScope implements com.google.common.base.Predicate<EObject>
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 |
---|
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 org.eclipse.emf.compare.scope.IComparisonScope |
create(CDOTransaction transaction) |
static org.eclipse.emf.compare.scope.IComparisonScope |
create(CDOTransaction transaction,
CDOViewOpener viewOpener) |
static org.eclipse.emf.compare.scope.IComparisonScope |
create(CDOView leftView,
CDOView rightView,
CDOView[] originView) |
static org.eclipse.emf.compare.scope.IComparisonScope |
create(CDOView leftView,
CDOView rightView,
CDOView[] originView,
CDOViewOpener viewOpener) |
static org.eclipse.emf.compare.scope.IComparisonScope |
create(CDOView leftView,
CDOView rightView,
CDOView[] originView,
Set<CDOID> ids) |
static org.eclipse.emf.compare.scope.IComparisonScope |
create(CDOView leftView,
CDOView rightView,
CDOView[] originView,
Set<CDOID> ids,
CDOViewOpener viewOpener) |
Iterator<? extends EObject> |
getChildren(EObject eObject) |
getCoveredEObjects, getCoveredResources, isResolveProxies, setResolveProxies
getDiagnostic, getLeft, getNsURIs, getOrigin, getResourceURIs, getRight, setDiagnostic
public Iterator<? extends EObject> getChildren(EObject eObject)
getChildren
in interface org.eclipse.emf.compare.scope.IComparisonScope
public boolean apply(EObject input)
apply
in interface com.google.common.base.Predicate<EObject>
protected void collectRequiredParentID(CDOView view, CDOID id, Set<CDOID> requiredParentIDs)
public static org.eclipse.emf.compare.scope.IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView)
public static org.eclipse.emf.compare.scope.IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView, CDOViewOpener viewOpener)
public static org.eclipse.emf.compare.scope.IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView, Set<CDOID> ids)
public static org.eclipse.emf.compare.scope.IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView, Set<CDOID> ids, CDOViewOpener viewOpener)
public static org.eclipse.emf.compare.scope.IComparisonScope create(CDOTransaction transaction)
public static org.eclipse.emf.compare.scope.IComparisonScope create(CDOTransaction transaction, CDOViewOpener viewOpener)
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.