org.eigenbase.rel.metadata
Class RelMdPercentageOriginalRows

java.lang.Object
  extended by org.eigenbase.rel.metadata.ReflectiveRelMetadataProvider
      extended by 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

Constructor Summary
RelMdPercentageOriginalRows()
           
 
Method Summary
 RelOptCost getCumulativeCost(RelNode rel)
           
 RelOptCost getNonCumulativeCost(RelNode rel)
           
 Double getPercentageOriginalRows(AggregateRelBase rel)
           
 Double getPercentageOriginalRows(JoinRelBase rel)
           
 Double getPercentageOriginalRows(RelNode rel)
           
 Double getPercentageOriginalRows(UnionRelBase rel)
           
private static Double quotientForPercentage(Double numerator, Double denominator)
           
 
Methods inherited from class org.eigenbase.rel.metadata.ReflectiveRelMetadataProvider
getRelMetadata, mapParameterTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelMdPercentageOriginalRows

public RelMdPercentageOriginalRows()
Method Detail

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)