|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.hadoop.hive.hbase.HBaseStatsUtils
public class HBaseStatsUtils
| Constructor Summary | |
|---|---|
HBaseStatsUtils()
|
|
| Method Summary | |
|---|---|
static String |
getBasicStat()
Returns the basic type of the supported statistics. |
static byte[] |
getColumnName(String statType)
Returns the HBase column where the statistics for the given type are stored. |
static byte[] |
getFamilyName()
Returns the family name for stored statistics. |
static String |
getStatFromMap(String statType,
Map<String,String> stats)
Retrieves the value for a particular stat from the published map. |
static List<String> |
getSupportedStatistics()
Returns the set of supported statistics |
static boolean |
isValidStatistic(String statType)
Check if a particular statistic type is supported |
static boolean |
isValidStatisticSet(Collection<String> stats)
Check if the set to be published is within the supported statistics. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HBaseStatsUtils()
| Method Detail |
|---|
public static List<String> getSupportedStatistics()
public static String getStatFromMap(String statType,
Map<String,String> stats)
statType - - statistic type to be retrieved from the mapstats - - stats map
public static boolean isValidStatisticSet(Collection<String> stats)
stats - - stats to be published
public static boolean isValidStatistic(String statType)
statType - - statistic to be published
public static byte[] getColumnName(String statType)
statType - - supported statistic.
public static byte[] getFamilyName()
public static String getBasicStat()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||