Package org.apache.hadoop.hbase.rsgroup
Class RSGroupUtil
java.lang.Object
org.apache.hadoop.hbase.rsgroup.RSGroupUtil
Helper class for RSGroup implementation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
enableRSGroup
(org.apache.hadoop.conf.Configuration conf) static RSGroupInfo
fillTables
(RSGroupInfo rsGroupInfo, Collection<TableDescriptor> tds) Fill the tables field forRSGroupInfo
, for backward compatibility.static Optional<RSGroupInfo>
getRSGroupInfo
(MasterServices master, RSGroupInfoManager manager, TableName tableName) Will try to get the rsgroup fromTableDescriptor
first, and then try to get the rsgroup from theNamespaceDescriptor
.static boolean
isRSGroupEnabled
(org.apache.hadoop.conf.Configuration conf) listTablesInRSGroup
(MasterServices master, String groupName)
-
Field Details
-
LOG
-
RS_GROUP_ENABLED
- See Also:
-
-
Constructor Details
-
RSGroupUtil
private RSGroupUtil()
-
-
Method Details
-
isRSGroupEnabled
-
enableRSGroup
-
listTablesInRSGroup
public static List<TableName> listTablesInRSGroup(MasterServices master, String groupName) throws IOException - Throws:
IOException
-
getRSGroupInfo
public static Optional<RSGroupInfo> getRSGroupInfo(MasterServices master, RSGroupInfoManager manager, TableName tableName) throws IOException Will try to get the rsgroup fromTableDescriptor
first, and then try to get the rsgroup from theNamespaceDescriptor
. If still not present, return empty.- Throws:
IOException
-
fillTables
Fill the tables field forRSGroupInfo
, for backward compatibility.
-