@InterfaceAudience.Private public final class RSGroupUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
static String |
RS_GROUP_ENABLED |
Modifier | Constructor and Description |
---|---|
private |
RSGroupUtil() |
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) |
private static final org.slf4j.Logger LOG
public static final String RS_GROUP_ENABLED
private RSGroupUtil()
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
IOException
public 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.IOException
public static RSGroupInfo fillTables(RSGroupInfo rsGroupInfo, Collection<TableDescriptor> tds)
RSGroupInfo
, for backward compatibility.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.