@InterfaceAudience.Private public abstract class ModifyRegionUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModifyRegionUtils.RegionEditTask |
static interface |
ModifyRegionUtils.RegionFillTask |
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
| Modifier | Constructor and Description |
|---|---|
private |
ModifyRegionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static RegionInfo |
createRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
TableDescriptor tableDescriptor,
RegionInfo newRegion,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static RegionInfo[] |
createRegionInfos(TableDescriptor tableDescriptor,
byte[][] splitKeys) |
static List<RegionInfo> |
createRegions(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
TableDescriptor tableDescriptor,
RegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static List<RegionInfo> |
createRegions(ThreadPoolExecutor exec,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
TableDescriptor tableDescriptor,
RegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static void |
editRegions(ThreadPoolExecutor exec,
Collection<RegionInfo> regions,
ModifyRegionUtils.RegionEditTask task)
Execute the task on the specified set of regions.
|
(package private) static ThreadPoolExecutor |
getRegionOpenAndInitThreadPool(org.apache.hadoop.conf.Configuration conf,
String threadNamePrefix,
int regionNumber) |
private static final org.slf4j.Logger LOG
private ModifyRegionUtils()
public static RegionInfo[] createRegionInfos(TableDescriptor tableDescriptor, byte[][] splitKeys)
public static List<RegionInfo> createRegions(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, TableDescriptor tableDescriptor, RegionInfo[] newRegions, ModifyRegionUtils.RegionFillTask task) throws IOException
conf - ConfigurationrootDir - Root directory for HBase instancetableDescriptor - description of the tablenewRegions - RegionInfo that describes the regions to createtask - ModifyRegionUtils.RegionFillTask custom code to populate region after creationIOExceptionpublic static List<RegionInfo> createRegions(ThreadPoolExecutor exec, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, TableDescriptor tableDescriptor, RegionInfo[] newRegions, ModifyRegionUtils.RegionFillTask task) throws IOException
exec - Thread Pool Executorconf - ConfigurationrootDir - Root directory for HBase instancetableDescriptor - description of the tablenewRegions - RegionInfo that describes the regions to createtask - ModifyRegionUtils.RegionFillTask custom code to populate region after creationIOExceptionpublic static RegionInfo createRegion(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, TableDescriptor tableDescriptor, RegionInfo newRegion, ModifyRegionUtils.RegionFillTask task) throws IOException
conf - ConfigurationrootDir - Root directory for HBase instancetableDescriptor - description of the tablenewRegion - RegionInfo that describes the region to createtask - ModifyRegionUtils.RegionFillTask custom code to populate region after creationIOExceptionpublic static void editRegions(ThreadPoolExecutor exec, Collection<RegionInfo> regions, ModifyRegionUtils.RegionEditTask task) throws IOException
exec - Thread Pool Executorregions - RegionInfo that describes the regions to edittask - ModifyRegionUtils.RegionFillTask custom code to edit the regionIOExceptionstatic ThreadPoolExecutor getRegionOpenAndInitThreadPool(org.apache.hadoop.conf.Configuration conf, String threadNamePrefix, int regionNumber)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.