net.sf.saffron.oj.rel
Class IterCalcRel
java.lang.Object
|
+--net.sf.saffron.rel.SaffronRel
|
+--net.sf.saffron.rel.SingleRel
|
+--net.sf.saffron.rel.ProjectRelBase
|
+--net.sf.saffron.oj.rel.IterCalcRel
- public class IterCalcRel
- extends ProjectRelBase
IterCalcRel
is an iterator implementation of a combination of
ProjectRel
above an optional FilterRel
. It takes an
iterator as input, and for each row applies the filter condition if defined.
Rows passing the filter expression are transformed via projection and
returned. Note that the same object is always returned (with different
values), so parents must not buffer the result.
Methods inherited from class net.sf.saffron.rel.SaffronRel |
computeDigest, getCluster, getCorrelVariable, getId, getInput, getOrCreateCorrelVariable, getQualifier, getQuery, getRelTypeName, getRowType, getTable, getVariablesStopped, isAccessTo, isDistinct, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString |
condition
public final RexNode condition
childExps
private RexNode[] childExps
IterCalcRel
public IterCalcRel(VolcanoCluster cluster,
SaffronRel child,
RexNode[] exps,
RexNode condition,
String[] fieldNames,
int flags)
getChildExps
public RexNode[] getChildExps()
- Description copied from class:
SaffronRel
- Returns an array of this
SaffronRel
's child expressions
(not including the inputs returned by SaffronRel.getInputs()
. If there
are no child expressions, returns an empty array, not
null
.
- Overrides:
getChildExps
in class ProjectRelBase
explain
public void explain(PlanWriter pw)
- Overrides:
explain
in class ProjectRelBase
getConvention
public CallingConvention getConvention()
- Description copied from class:
SaffronRel
- Returns a value from
CallingConvention
.
- Overrides:
getConvention
in class SaffronRel
clone
public Object clone()
- Specified by:
clone
in class SaffronRel
implement
public Object implement(RelImplementor implementor,
int ordinal)
- Description copied from class:
SaffronRel
- Create a plan for this expression according to a calling convention.
- Overrides:
implement
in class SaffronRel
- Parameters:
implementor
- implementorordinal
- indicates our position in the pre-, in- and postfix walk
over the tree; ordinal
is -1 when called from the
parent, and i
when called from the
i
th child.