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.


Field Summary
protected  RelFieldCollation[] collations
           
protected  RexNode[] fieldExps
           
 
Fields inherited from class net.sf.saffron.rel.SingleRel
child
 
Fields inherited from class net.sf.saffron.rel.SaffronRel
cluster, digest, emptyArray, id, nextId, rowType
 
Constructor Summary
SortRel(VolcanoCluster cluster, SaffronRel child, RelFieldCollation[] collations)
          Creates a sorter.
 
Method Summary
 Object clone()
           
 void explain(PlanWriter pw)
           
 RexNode[] getChildExps()
          Returns an array of this SaffronRel's child expressions (not including the inputs returned by SingleRel.getInputs().
 RelFieldCollation[] getCollations()
          .
 
Methods inherited from class net.sf.saffron.rel.SingleRel
childrenAccept, deriveRowType, getInputs, getRows, replaceInput
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

collations

protected final RelFieldCollation[] collations

fieldExps

protected final RexNode[] fieldExps
Constructor Detail

SortRel

public SortRel(VolcanoCluster cluster,
               SaffronRel child,
               RelFieldCollation[] collations)
Creates a sorter.

Parameters:
cluster - VolcanoCluster this relational expression belongs to
child - input relational expression
collations - array of sort specifications
Method Detail

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

SourceForge.net_Logo