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.


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

Method Detail

getMaxPrefixLength

public static int getMaxPrefixLength(org.apache.hadoop.conf.Configuration conf)

newFactory

public static StatsFactory newFactory(org.apache.hadoop.conf.Configuration conf)

newFactory

public static StatsFactory newFactory(String configurationParam,
                                      org.apache.hadoop.conf.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 StatsPublisher getStatsPublisher()
Returns a Stats publisher implementation class for the IStatsPublisher interface For example HBaseStatsPublisher for the HBase implementation


getStatsAggregator

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



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