public class DependentQueryComponent extends ProcessingComponent
ProcessingComponent
that executes a dependent query
node by first executing the left
component and then executing the right component. If a variable name is specified, this component will save the query results
from the the corresponding component into the variables
in the QueryContext
.ProcessingComponent.DynamicOperation
Constructor and Description |
---|
DependentQueryComponent(QueryContext context,
ProcessingComponent left,
ProcessingComponent right,
String leftVariableName,
String rightVariableName) |
Modifier and Type | Method and Description |
---|---|
protected QueryResults.Columns |
colunnsOfDependentQuery()
Get the columns definition for the results from the right component that is dependent upon the left.
|
protected QueryResults.Columns |
colunnsOfIndependentQuery()
Get the columns definition for the results from the left, independent query that is processed first.
|
List<Object[]> |
execute()
Execute this stage of processing and return the resulting tuples that each conform to the
columns . |
protected ProcessingComponent |
left()
Get the processing component that serves as the left side of the join.
|
protected ProcessingComponent |
right()
Get the processing component that serves as the right side of the join.
|
protected void |
saveResultsToVariable(List<Object[]> results,
String variableName) |
close, createDynamicOperation, createSortComparator, emptyTuples, getColumns, getContext, getLocationIndexes, problems
public DependentQueryComponent(QueryContext context, ProcessingComponent left, ProcessingComponent right, String leftVariableName, String rightVariableName)
protected final ProcessingComponent left()
protected final ProcessingComponent right()
protected final QueryResults.Columns colunnsOfIndependentQuery()
protected final QueryResults.Columns colunnsOfDependentQuery()
public List<Object[]> execute()
ProcessingComponent
columns
.execute
in class ProcessingComponent
columns
; never nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.