public class HBaseStatsUtils extends Object
| Constructor and Description |
|---|
HBaseStatsUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 mappublic static boolean isValidStatisticSet(Collection<String> stats)
stats - - stats to be publishedpublic static boolean isValidStatistic(String statType)
statType - - statistic to be publishedpublic static byte[] getColumnName(String statType)
statType - - supported statistic.public static byte[] getFamilyName()
public static String getBasicStat()
Copyright © 2017 The Apache Software Foundation. All rights reserved.