net.sf.farrago.namespace.ftrs
Class FtrsDataServer.FtrsRelMetadataProvider

java.lang.Object
  extended by org.eigenbase.rel.metadata.ReflectiveRelMetadataProvider
      extended by net.sf.farrago.namespace.ftrs.FtrsDataServer.FtrsRelMetadataProvider
All Implemented Interfaces:
RelMetadataProvider, ReflectiveVisitor
Enclosing class:
FtrsDataServer

public static class FtrsDataServer.FtrsRelMetadataProvider
extends ReflectiveRelMetadataProvider


Field Summary
private  FtrsDataServer.FtrsColumnMetadata columnMd
           
private  FarragoRepos repos
           
 
Constructor Summary
FtrsDataServer.FtrsRelMetadataProvider(FarragoRepos repos)
           
 
Method Summary
 Boolean areColumnsUnique(FtrsIndexScanRel rel, BitSet columns, boolean ignoreNulls)
           
 Double getDistinctRowCount(FtrsIndexScanRel rel, BitSet groupKey, RexNode predicate)
           
 Double getPopulationSize(FtrsIndexScanRel rel, BitSet groupKey)
           
 Set<BitSet> getUniqueKeys(FtrsIndexScanRel rel, boolean ignoreNulls)
           
 
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
 

Field Detail

repos

private final FarragoRepos repos

columnMd

private final FtrsDataServer.FtrsColumnMetadata columnMd
Constructor Detail

FtrsDataServer.FtrsRelMetadataProvider

FtrsDataServer.FtrsRelMetadataProvider(FarragoRepos repos)
Method Detail

getDistinctRowCount

public Double getDistinctRowCount(FtrsIndexScanRel rel,
                                  BitSet groupKey,
                                  RexNode predicate)

getPopulationSize

public Double getPopulationSize(FtrsIndexScanRel rel,
                                BitSet groupKey)

getUniqueKeys

public Set<BitSet> getUniqueKeys(FtrsIndexScanRel rel,
                                 boolean ignoreNulls)

areColumnsUnique

public Boolean areColumnsUnique(FtrsIndexScanRel rel,
                                BitSet columns,
                                boolean ignoreNulls)