Package org.apache.hadoop.hbase.rsgroup
Class RSGroupUtil
java.lang.Object
org.apache.hadoop.hbase.rsgroup.RSGroupUtil
Helper class for RSGroup implementation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableRSGroup(org.apache.hadoop.conf.Configuration conf) static RSGroupInfofillTables(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 fromTableDescriptorfirst, and then try to get the rsgroup from theNamespaceDescriptor.static booleanisRSGroupEnabled(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 fromTableDescriptorfirst, 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.
-