net.sf.saffron.rel
Class SortRel
java.lang.Object
|
+--net.sf.saffron.rel.SaffronRel
|
+--net.sf.saffron.rel.SingleRel
|
+--net.sf.saffron.rel.SortRel
- public class SortRel
- extends SingleRel
Relational expression which imposes a
particular sort order on its input without otherwise changing its content.
Methods inherited from class net.sf.saffron.rel.SaffronRel |
computeDigest, computeSelfCost, getCluster, getConvention, getCorrelVariable, getId, getInput, getOrCreateCorrelVariable, getQualifier, getQuery, getRelTypeName, getRowType, getTable, getVariablesStopped, implement, implementFieldAccess, isAccessTo, isDistinct, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString |
collations
protected final RelFieldCollation[] collations
fieldExps
protected final RexNode[] fieldExps
SortRel
public SortRel(VolcanoCluster cluster,
SaffronRel child,
RelFieldCollation[] collations)
- Creates a sorter.
- Parameters:
cluster
- VolcanoCluster
this relational expression
belongs tochild
- input relational expressioncollations
- array of sort specifications
clone
public Object clone()
- Specified by:
clone
in class SaffronRel
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
getCollations
public RelFieldCollation[] getCollations()
- .
- Returns:
- array of RelFieldCollations, from most significant to least
significant
explain
public void explain(PlanWriter pw)
- Overrides:
explain
in class SingleRel