@InterfaceAudience.Private public abstract class ModifyRegionUtils extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModifyRegionUtils.RegionEditTask |
static interface |
ModifyRegionUtils.RegionFillTask |
| Modifier and Type | Method and Description |
|---|---|
static void |
assignRegions(AssignmentManager assignmentManager,
java.util.List<HRegionInfo> regionInfos)
Triggers a bulk assignment of the specified regions
|
static HRegionInfo[] |
createHRegionInfos(HTableDescriptor hTableDescriptor,
byte[][] splitKeys) |
static HRegionInfo |
createRegion(Configuration conf,
Path rootDir,
Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo newRegion,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static java.util.List<HRegionInfo> |
createRegions(Configuration conf,
Path rootDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions)
Create new set of regions on the specified file-system.
|
static java.util.List<HRegionInfo> |
createRegions(Configuration conf,
Path rootDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static java.util.List<HRegionInfo> |
createRegions(Configuration conf,
Path rootDir,
Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static java.util.List<HRegionInfo> |
createRegions(java.util.concurrent.ThreadPoolExecutor exec,
Configuration conf,
Path rootDir,
Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static void |
editRegions(java.util.concurrent.ThreadPoolExecutor exec,
java.util.Collection<HRegionInfo> regions,
ModifyRegionUtils.RegionEditTask task)
Execute the task on the specified set of regions.
|
public static HRegionInfo[] createHRegionInfos(HTableDescriptor hTableDescriptor, byte[][] splitKeys)
public static java.util.List<HRegionInfo> createRegions(Configuration conf, Path rootDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions) throws java.io.IOException
conf - ConfigurationrootDir - Root directory for HBase instancehTableDescriptor - description of the tablenewRegions - HRegionInfo that describes the regions to createjava.io.IOExceptionpublic static java.util.List<HRegionInfo> createRegions(Configuration conf, Path rootDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions, ModifyRegionUtils.RegionFillTask task) throws java.io.IOException
conf - ConfigurationrootDir - Root directory for HBase instancehTableDescriptor - description of the tablenewRegions - HRegionInfo that describes the regions to createtask - ModifyRegionUtils.RegionFillTask custom code to populate region after creationjava.io.IOExceptionpublic static java.util.List<HRegionInfo> createRegions(Configuration conf, Path rootDir, Path tableDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions, ModifyRegionUtils.RegionFillTask task) throws java.io.IOException
conf - ConfigurationrootDir - Root directory for HBase instancetableDir - table directoryhTableDescriptor - description of the tablenewRegions - HRegionInfo that describes the regions to createtask - ModifyRegionUtils.RegionFillTask custom code to populate region after creationjava.io.IOExceptionpublic static java.util.List<HRegionInfo> createRegions(java.util.concurrent.ThreadPoolExecutor exec, Configuration conf, Path rootDir, Path tableDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions, ModifyRegionUtils.RegionFillTask task) throws java.io.IOException
exec - Thread Pool Executorconf - ConfigurationrootDir - Root directory for HBase instancetableDir - table directoryhTableDescriptor - description of the tablenewRegions - HRegionInfo that describes the regions to createtask - ModifyRegionUtils.RegionFillTask custom code to populate region after creationjava.io.IOExceptionpublic static HRegionInfo createRegion(Configuration conf, Path rootDir, Path tableDir, HTableDescriptor hTableDescriptor, HRegionInfo newRegion, ModifyRegionUtils.RegionFillTask task) throws java.io.IOException
conf - ConfigurationrootDir - Root directory for HBase instancetableDir - table directoryhTableDescriptor - description of the tablenewRegion - HRegionInfo that describes the region to createtask - ModifyRegionUtils.RegionFillTask custom code to populate region after creationjava.io.IOExceptionpublic static void editRegions(java.util.concurrent.ThreadPoolExecutor exec,
java.util.Collection<HRegionInfo> regions,
ModifyRegionUtils.RegionEditTask task)
throws java.io.IOException
exec - Thread Pool Executorregions - HRegionInfo that describes the regions to edittask - ModifyRegionUtils.RegionFillTask custom code to edit the regionjava.io.IOExceptionpublic static void assignRegions(AssignmentManager assignmentManager, java.util.List<HRegionInfo> regionInfos) throws java.io.IOException
assignmentManager - the Assignment MangerregionInfos - the list of regions to assignjava.io.IOException - if an error occurred during the assignment