@InterfaceAudience.Private public final class RSGroupUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RS_GROUP_ENABLED |
| Modifier and Type | Method and Description |
|---|---|
static void |
enableRSGroup(org.apache.hadoop.conf.Configuration conf) |
static RSGroupInfo |
fillTables(RSGroupInfo rsGroupInfo,
Collection<TableDescriptor> tds)
Fill the tables field for
RSGroupInfo, for backward compatibility. |
static Optional<RSGroupInfo> |
getRSGroupInfo(MasterServices master,
RSGroupInfoManager manager,
TableName tableName)
Will try to get the rsgroup from
TableDescriptor first, and then try to get the rsgroup
from the NamespaceDescriptor. |
static boolean |
isRSGroupEnabled(org.apache.hadoop.conf.Configuration conf) |
static List<TableName> |
listTablesInRSGroup(MasterServices master,
String groupName) |
public static final String RS_GROUP_ENABLED
public static boolean isRSGroupEnabled(org.apache.hadoop.conf.Configuration conf)
public static void enableRSGroup(org.apache.hadoop.conf.Configuration conf)
public static List<TableName> listTablesInRSGroup(MasterServices master, String groupName) throws IOException
IOExceptionpublic static Optional<RSGroupInfo> getRSGroupInfo(MasterServices master, RSGroupInfoManager manager, TableName tableName) throws IOException
TableDescriptor first, and then try to get the rsgroup
from the NamespaceDescriptor. If still not present, return empty.IOExceptionpublic static RSGroupInfo fillTables(RSGroupInfo rsGroupInfo, Collection<TableDescriptor> tds)
RSGroupInfo, for backward compatibility.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.