@InterfaceAudience.Private public abstract class ModifyRegionUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModifyRegionUtils.RegionFillTask |
| Modifier and Type | Method and Description |
|---|---|
static List<HRegionInfo> |
createRegions(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions)
Create new set of regions on the specified file-system.
|
static List<HRegionInfo> |
createRegions(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
public static List<HRegionInfo> createRegions(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions) throws IOException
conf - ConfigurationrootDir - Root directory for HBase instancehTableDescriptor - description of the tablenewRegions - HRegionInfo that describes the regions to createIOExceptionpublic static List<HRegionInfo> createRegions(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions, ModifyRegionUtils.RegionFillTask task) throws 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 creationIOExceptionCopyright © 2013 The Apache Software Foundation. All Rights Reserved.