@InterfaceAudience.Private public final class MasterDDLOperationHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkTableModifiable(MasterProcedureEnv env,
TableName tableName)
Check whether a table is modifiable - exists and either offline or online with config set
|
static void |
deleteColumnFamilyFromFileSystem(MasterProcedureEnv env,
TableName tableName,
List<HRegionInfo> regionInfoList,
byte[] familyName)
Remove the column family from the file system
|
static boolean |
isOnlineSchemaChangeAllowed(MasterProcedureEnv env)
Check whether online schema change is allowed from config
|
static boolean |
reOpenAllRegions(MasterProcedureEnv env,
TableName tableName,
List<HRegionInfo> regionInfoList)
Reopen all regions from a table after a schema change operation.
|
public static boolean isOnlineSchemaChangeAllowed(MasterProcedureEnv env)
public static void checkTableModifiable(MasterProcedureEnv env, TableName tableName) throws IOException
env
- MasterProcedureEnvtableName
- name of the tableIOException
public static void deleteColumnFamilyFromFileSystem(MasterProcedureEnv env, TableName tableName, List<HRegionInfo> regionInfoList, byte[] familyName) throws IOException
IOException
public static boolean reOpenAllRegions(MasterProcedureEnv env, TableName tableName, List<HRegionInfo> regionInfoList) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.