|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.ModifyRegionUtils
@InterfaceAudience.Private public abstract class ModifyRegionUtils
Utility methods for interacting with the regions.
Nested Class Summary | |
---|---|
static interface |
ModifyRegionUtils.RegionEditTask
|
static interface |
ModifyRegionUtils.RegionFillTask
|
Method Summary | |
---|---|
static void |
assignRegions(AssignmentManager assignmentManager,
List<HRegionInfo> regionInfos)
Triggers a bulk assignment of the specified regions |
static HRegionInfo |
createRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo newRegion,
ModifyRegionUtils.RegionFillTask task)
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)
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. |
static List<HRegionInfo> |
createRegions(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system. |
static List<HRegionInfo> |
createRegions(ThreadPoolExecutor exec,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system. |
static void |
editRegions(ThreadPoolExecutor exec,
Collection<HRegionInfo> regions,
ModifyRegionUtils.RegionEditTask task)
Execute the task on the specified set of regions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<HRegionInfo> createRegions(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions) throws IOException
conf
- Configuration
rootDir
- Root directory for HBase instancehTableDescriptor
- description of the tablenewRegions
- HRegionInfo
that describes the regions to create
IOException
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
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
IOException
public static List<HRegionInfo> createRegions(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.fs.Path tableDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions, ModifyRegionUtils.RegionFillTask task) throws IOException
conf
- Configuration
rootDir
- 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 creation
IOException
public static List<HRegionInfo> createRegions(ThreadPoolExecutor exec, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.fs.Path tableDir, HTableDescriptor hTableDescriptor, HRegionInfo[] newRegions, ModifyRegionUtils.RegionFillTask task) throws IOException
exec
- Thread Pool Executorconf
- Configuration
rootDir
- 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 creation
IOException
public static HRegionInfo createRegion(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path rootDir, org.apache.hadoop.fs.Path tableDir, HTableDescriptor hTableDescriptor, HRegionInfo newRegion, ModifyRegionUtils.RegionFillTask task) throws IOException
conf
- Configuration
rootDir
- 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 creation
IOException
public static void editRegions(ThreadPoolExecutor exec, Collection<HRegionInfo> regions, ModifyRegionUtils.RegionEditTask task) throws IOException
exec
- Thread Pool Executorregions
- HRegionInfo
that describes the regions to edittask
- ModifyRegionUtils.RegionFillTask
custom code to edit the region
IOException
public static void assignRegions(AssignmentManager assignmentManager, List<HRegionInfo> regionInfos) throws IOException
assignmentManager
- the Assignment MangerregionInfos
- the list of regions to assign
IOException
- if an error occurred during the assignment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |