org.modeshape.jcr.query.process
Class SetOperationComponent
java.lang.Object
org.modeshape.jcr.query.process.ProcessingComponent
org.modeshape.jcr.query.process.SetOperationComponent
- Direct Known Subclasses:
- ExceptComponent, IntersectComponent, UnionComponent
public abstract class SetOperationComponent
- extends ProcessingComponent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
removeDuplicatesComparator
protected final Comparator<Object[]> removeDuplicatesComparator
SetOperationComponent
protected SetOperationComponent(QueryContext context,
QueryResults.Columns columns,
Iterable<ProcessingComponent> sources,
boolean alreadySorted,
boolean all)
unionCompatible
protected static boolean unionCompatible(QueryResults.Columns columns,
Iterable<ProcessingComponent> sources)
sources
protected Iterable<ProcessingComponent> sources()
- Returns:
- sources
wrapWithLocationOrdering
protected static Iterable<ProcessingComponent> wrapWithLocationOrdering(Iterable<ProcessingComponent> sources,
boolean alreadySorted)
- The sources' results must be sorted before the intersection can be computed. Ensure that the sources' results are indeed
sorted, and if not wrap them in a sorting component.
- Parameters:
sources
- the sources being intersected; may not be nullalreadySorted
- true if the sources' results are already sorted, or false if they must be sorted by this component
- Returns:
- the sources (or their wrappers); never null
removeDuplicatesIfRequested
protected void removeDuplicatesIfRequested(List<Object[]> tuples)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.