org.eigenbase.rel.metadata
Class RelMdPercentageOriginalRows
java.lang.Object
org.eigenbase.rel.metadata.ReflectiveRelMetadataProvider
org.eigenbase.rel.metadata.RelMdPercentageOriginalRows
- All Implemented Interfaces:
- RelMetadataProvider, ReflectiveVisitor
public class RelMdPercentageOriginalRows
- extends ReflectiveRelMetadataProvider
RelMdPercentageOriginalRows supplies a default implementation of RelMetadataQuery.getPercentageOriginalRows(org.eigenbase.rel.RelNode)
for the standard logical algebra.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/rel/metadata/RelMdPercentageOriginalRows.java#8 $
- Author:
- John V. Sichi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelMdPercentageOriginalRows
public RelMdPercentageOriginalRows()
getPercentageOriginalRows
public Double getPercentageOriginalRows(AggregateRelBase rel)
getPercentageOriginalRows
public Double getPercentageOriginalRows(UnionRelBase rel)
getPercentageOriginalRows
public Double getPercentageOriginalRows(JoinRelBase rel)
getPercentageOriginalRows
public Double getPercentageOriginalRows(RelNode rel)
getCumulativeCost
public RelOptCost getCumulativeCost(RelNode rel)
getNonCumulativeCost
public RelOptCost getNonCumulativeCost(RelNode rel)
quotientForPercentage
private static Double quotientForPercentage(Double numerator,
Double denominator)