@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 | 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.
|
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
- Configuration
rootDir
- Root directory for HBase instancetableDescriptor
- description of the tablenewRegions
- RegionInfo
that describes the regions to createtask
- ModifyRegionUtils.RegionFillTask
custom code to populate region after creationIOException
public 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
- Configuration
rootDir
- Root directory for HBase instancetableDescriptor
- description of the tablenewRegions
- RegionInfo
that describes the regions to createtask
- ModifyRegionUtils.RegionFillTask
custom code to populate region after creationIOException
public 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
- Configuration
rootDir
- Root directory for HBase instancetableDescriptor
- description of the tablenewRegion
- RegionInfo
that describes the region to createtask
- ModifyRegionUtils.RegionFillTask
custom code to populate region after creationIOException
public 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 regionIOException
Copyright © 2007–2019 Cloudera. All rights reserved.