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
Adapter.Internal
allInvolvedResourceURIs, diagnostic, left, nsURIs, origin, resourceURIs, right
target
Constructor and Description |
---|
Minimal(CDOView leftView,
CDOView rightView,
CDOView originView,
java.util.Set<CDOID> ids) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(EObject input) |
protected void |
collectRequiredParentID(CDOView view,
CDOID id,
java.util.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,
java.util.Set<CDOID> ids) |
static org.eclipse.emf.compare.scope.IComparisonScope |
create(CDOView leftView,
CDOView rightView,
CDOView[] originView,
java.util.Set<CDOID> ids,
CDOViewOpener viewOpener) |
java.util.Iterator<? extends EObject> |
getChildren(EObject eObject) |
getCoveredEObjects, getCoveredResources, isResolveProxies, setResolveProxies
getAllInvolvedResourceURIs, getDiagnostic, getLeft, getNsURIs, getOrigin, getResourceURIs, getRight, isAdapterForType, setDiagnostic
getTarget, notifyChanged, setTarget, unsetTarget
public java.util.Iterator<? extends EObject> getChildren(EObject eObject)
getChildren
in interface org.eclipse.emf.compare.scope.IComparisonScope
public boolean apply(EObject input)
protected void collectRequiredParentID(CDOView view, CDOID id, java.util.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, java.util.Set<CDOID> ids)
public static org.eclipse.emf.compare.scope.IComparisonScope create(CDOView leftView, CDOView rightView, CDOView[] originView, java.util.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) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html