org.apache.hadoop.hive.ql.stats
Class StatsFactory

java.lang.Object
  extended by org.apache.hadoop.hive.ql.stats.StatsFactory

public final class StatsFactory
extends Object

A factory of stats publisher and aggregator implementations of the StatsPublisher and StatsAggregator interfaces.


Constructor Summary
StatsFactory()
           
 
Method Summary
static StatsAggregator getStatsAggregator()
          Returns a Stats Aggregator implementation class for the IStatsAggregator interface For example HBaseStatsAggregator for the HBase implementation
static StatsPublisher getStatsPublisher()
          Returns a Stats publisher implementation class for the IStatsPublisher interface For example HBaseStatsPublisher for the HBase implementation
static boolean setImplementation(String configurationParam, Configuration conf)
          Sets the paths of the implementation classes of publishing and aggregation (IStatsPublisher and IStatsAggregator interfaces).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsFactory

public StatsFactory()
Method Detail

setImplementation

public static boolean setImplementation(String configurationParam,
                                        Configuration conf)
Sets the paths of the implementation classes of publishing and aggregation (IStatsPublisher and IStatsAggregator interfaces). The paths are determined according to a configuration parameter which is passed as the user input for choosing the implementation as MySQL, HBase, ...


getStatsPublisher

public static StatsPublisher getStatsPublisher()
Returns a Stats publisher implementation class for the IStatsPublisher interface For example HBaseStatsPublisher for the HBase implementation


getStatsAggregator

public static StatsAggregator getStatsAggregator()
Returns a Stats Aggregator implementation class for the IStatsAggregator interface For example HBaseStatsAggregator for the HBase implementation



Copyright © 2012 The Apache Software Foundation