saffron.rel
Class Correlator
java.lang.Object
|
+--saffron.rel.Rel
|
+--saffron.rel.Join
|
+--saffron.rel.Correlator
- public class Correlator
- extends Join
A Correlator
behaves like a kind of Join
, but works by
setting variables in its environment and restarting its right-hand input.
It is used to represent a correlated query; one implementation option is to
de-correlate the expression.
- Since:
- 23 September, 2001
- Version:
- $Id: //open/saffron/src/main/saffron/rel/Correlator.java#3 $
- Author:
- jhyde
Nested classes inherited from class saffron.rel.Rel |
|
Methods inherited from class saffron.rel.Join |
childrenAccept, deriveRowType, explain, getChildExps, getCondition, getInputs, getJoinType, getLeft, getRight, getVariablesStopped, register, registerStoppedVariable, replaceInput, setVariablesStopped, switchJoinType |
Methods inherited from class saffron.rel.Rel |
computeDigest, computeSelfCost, getCluster, getConvention, getCorelVariable, getEnvironment, getId, getInput, getOrCreateCorelVariable, getParentEnv, getQualifier, getQuery, getRelTypeName, getRows, getRowType, getTable, getType, implement, implementExp, implementExps, implementFieldAccess, implementSelf, isAccessTo, isDistinct, onRegister, recomputeDigest, registerCorelVariable, setCorelVariable, toString |
correlations
Expression[] correlations
Correlator
Correlator(Cluster cluster,
Rel left,
Rel right,
int joinType,
Expression[] correlations)
- Creates a Correlator.
- Parameters:
cluster
- Cluster
this relational expression belongs toleft
- left input relational expressionright
- right input relational expressionjoinType
- join type (see Join.joinType
)correlations
- set of expressions to set as variables each time a
row arrives from the left input
clone
public Object clone()
- Overrides:
clone
in class Join