org.apache.hadoop.hive.ql.optimizer.stats.annotation
Class StatsRulesProcFactory

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.stats.annotation.StatsRulesProcFactory

public class StatsRulesProcFactory
extends Object


Nested Class Summary
static class StatsRulesProcFactory.DefaultStatsRule
          Default rule is to aggregate the statistics from all its parent operators.
static class StatsRulesProcFactory.FilterStatsRule
          FILTER operator does not change the average row size but it does change the number of rows emitted.
static class StatsRulesProcFactory.GroupByStatsRule
          GROUPBY operator changes the number of rows.
static class StatsRulesProcFactory.JoinStatsRule
          JOIN operator can yield any of the following three cases The values of join keys are disjoint in both relations in which case T(RXS) = 0 (we need histograms for this) Join key is primary key on relation R and foreign key on relation S in which case every tuple in S will have a tuple in R T(RXS) = T(S) (we need histograms for this) Both R & S relation have same value for join-key.
static class StatsRulesProcFactory.LimitStatsRule
          LIMIT operator changes the number of rows and thereby the data size.
static class StatsRulesProcFactory.SelectStatsRule
          SELECT operator doesn't change the number of rows emitted from the parent operator.
static class StatsRulesProcFactory.TableScanStatsRule
          Collect basic statistics like number of rows, data size and column level statistics from the table.
 
Constructor Summary
StatsRulesProcFactory()
           
 
Method Summary
static NodeProcessor getDefaultRule()
           
static NodeProcessor getFilterRule()
           
static NodeProcessor getGroupByRule()
           
static NodeProcessor getJoinRule()
           
static NodeProcessor getLimitRule()
           
static NodeProcessor getSelectRule()
           
static NodeProcessor getTableScanRule()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsRulesProcFactory

public StatsRulesProcFactory()
Method Detail

getTableScanRule

public static NodeProcessor getTableScanRule()

getSelectRule

public static NodeProcessor getSelectRule()

getFilterRule

public static NodeProcessor getFilterRule()

getGroupByRule

public static NodeProcessor getGroupByRule()

getJoinRule

public static NodeProcessor getJoinRule()

getLimitRule

public static NodeProcessor getLimitRule()

getDefaultRule

public static NodeProcessor getDefaultRule()


Copyright © 2014 The Apache Software Foundation. All rights reserved.