net.sf.saffron.rel
Class DistinctRel
java.lang.Object
|
+--net.sf.saffron.rel.SaffronRel
|
+--net.sf.saffron.rel.SingleRel
|
+--net.sf.saffron.rel.DistinctRel
- Direct Known Subclasses:
- JavaDistinctRel, JavaExistsRel
- public class DistinctRel
- extends SingleRel
DistinctRel
is a SaffronRel
which eliminates
duplicates from its input.
- Since:
- 30 September, 2001
- Version:
- $Id: //open/saffron/src/net/sf/saffron/rel/DistinctRel.java#5 $
- Author:
- jhyde
Methods inherited from class net.sf.saffron.rel.SaffronRel |
computeDigest, getChildExps, getCluster, getConvention, getCorrelVariable, getId, getInput, getOrCreateCorrelVariable, getQualifier, getQuery, getRelTypeName, getRowType, getTable, getVariablesStopped, implement, implementFieldAccess, isAccessTo, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString |
DistinctRel
public DistinctRel(VolcanoCluster cluster,
SaffronRel child)
isDistinct
public boolean isDistinct()
- Description copied from class:
SaffronRel
- Returns whether the same value will not come out twice. Default value
is
false
, derived classes should override.
- Overrides:
isDistinct
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