org.apache.hadoop.hbase.util
Class ModifyRegionUtils
java.lang.Object
org.apache.hadoop.hbase.util.ModifyRegionUtils
@InterfaceAudience.Private
public abstract class ModifyRegionUtils
- extends Object
Utility methods for interacting with the regions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createRegions
public static List<HRegionInfo> createRegions(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions)
throws IOException
- Create new set of regions on the specified file-system.
NOTE: that you should add the regions to .META. after this operation.
- Parameters:
conf
- Configuration
rootDir
- Root directory for HBase instancehTableDescriptor
- description of the tablenewRegions
- HRegionInfo
that describes the regions to create
- Throws:
IOException
createRegions
public 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
- Create new set of regions on the specified file-system.
NOTE: that you should add the regions to .META. after this operation.
- Parameters:
conf
- Configuration
rootDir
- Root directory for HBase instancehTableDescriptor
- description of the tablenewRegions
- HRegionInfo
that describes the regions to createtask
- ModifyRegionUtils.RegionFillTask
custom code to populate region after creation
- Throws:
IOException
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.