net.sf.saffron.rel
Class FilterRel
java.lang.Object
|
+--net.sf.saffron.rel.SaffronRel
|
+--net.sf.saffron.rel.SingleRel
|
+--net.sf.saffron.rel.FilterRel
- Direct Known Subclasses:
- JavaFilterRel
- public class FilterRel
- extends SingleRel
A FilterRel
is a relational expression which iterates over its
input, and returns elements for which condition
evaluates to
true
.
Methods inherited from class net.sf.saffron.rel.SaffronRel |
computeDigest, getCluster, getConvention, getCorrelVariable, getId, getInput, getOrCreateCorrelVariable, getQualifier, getQuery, getRelTypeName, getRowType, getTable, getVariablesStopped, implement, implementFieldAccess, isAccessTo, isDistinct, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString |
condition
public RexNode condition
FilterRel
public FilterRel(VolcanoCluster cluster,
SaffronRel child,
RexNode condition)
- Creates a filter.
- Parameters:
cluster
- VolcanoCluster
this relational expression
belongs tochild
- input relational expressioncondition
- boolean expression which determines whether a row is
allowed to pass
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 SaffronRel
clone
public Object clone()
- Specified by:
clone
in class SaffronRel
computeSelfCost
public PlanCost computeSelfCost(SaffronPlanner planner)
- Description copied from class:
SaffronRel
- Returns the cost of this plan (not including children). The base
implementation throws an error; derived classes should override.
- Overrides:
computeSelfCost
in class SaffronRel
getRows
public double getRows()
- Description copied from class:
SaffronRel
- Returns an estimate of the number of rows this relational expression
will return.
- Overrides:
getRows
in class SingleRel
explain
public void explain(PlanWriter pw)
- Overrides:
explain
in class SingleRel