public abstract class SetOperationComponent extends ProcessingComponent
ProcessingComponent.DynamicOperation| Modifier and Type | Field and Description |
|---|---|
protected Comparator<Object[]> |
removeDuplicatesComparator |
protected List<QueryResults.TupleReformatter> |
sourceReformatters |
| Modifier | Constructor and Description |
|---|---|
protected |
SetOperationComponent(QueryContext context,
QueryResults.Columns columns,
Iterable<ProcessingComponent> sources,
boolean alreadySorted,
boolean all) |
| Modifier and Type | Method and Description |
|---|---|
QueryResults.Columns |
getColumns()
Get the column definitions.
|
protected void |
removeDuplicatesIfRequested(List<Object[]> tuples) |
protected Iterable<ProcessingComponent> |
sources() |
protected static boolean |
unionCompatible(QueryResults.Columns columns,
Iterable<ProcessingComponent> sources) |
protected static Iterable<ProcessingComponent> |
wrapWithLocationOrdering(Iterable<ProcessingComponent> sources,
boolean alreadySorted)
The sources' results must be sorted before the intersection can be computed.
|
close, createDynamicOperation, createSortComparator, emptyTuples, execute, getContext, getLocationIndexes, problemsprotected final List<QueryResults.TupleReformatter> sourceReformatters
protected final Comparator<Object[]> removeDuplicatesComparator
protected SetOperationComponent(QueryContext context, QueryResults.Columns columns, Iterable<ProcessingComponent> sources, boolean alreadySorted, boolean all)
protected static boolean unionCompatible(QueryResults.Columns columns, Iterable<ProcessingComponent> sources)
public QueryResults.Columns getColumns()
ProcessingComponentgetColumns in class ProcessingComponentprotected Iterable<ProcessingComponent> sources()
protected static Iterable<ProcessingComponent> wrapWithLocationOrdering(Iterable<ProcessingComponent> sources, boolean alreadySorted)
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 componentCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.