|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.util.MetaUtils
public class MetaUtils
Contains utility methods for manipulating HBase meta tables
Nested Class Summary | |
---|---|
static interface |
MetaUtils.ScannerListener
Used by scanRootRegion and scanMetaRegion to call back the caller so it can process the data for a row. |
Constructor Summary | |
---|---|
MetaUtils()
Default constructor |
|
MetaUtils(HBaseConfiguration conf)
|
Method Summary | |
---|---|
HLog |
getLog()
|
HRegion |
getMetaRegion(HRegionInfo metaInfo)
Open or return cached opened meta region |
HRegion |
getRootRegion()
|
org.apache.hadoop.fs.Path |
initialize()
Verifies that DFS is available and that HBase is off-line. |
boolean |
isInitialized()
|
void |
scanMetaRegion(HRegionInfo metaRegionInfo,
MetaUtils.ScannerListener listener)
Scans a meta region. |
void |
scanRootRegion(MetaUtils.ScannerListener listener)
Scans the root region. |
void |
shutdown()
Closes root region if open. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaUtils()
public MetaUtils(HBaseConfiguration conf)
conf
- HBaseConfigurationMethod Detail |
---|
public org.apache.hadoop.fs.Path initialize() throws IOException
IOException
public boolean isInitialized()
public HLog getLog()
public HRegion getRootRegion() throws IOException
IOException
public HRegion getMetaRegion(HRegionInfo metaInfo) throws IOException
metaInfo
- HRegionInfo for meta region
IOException
public void shutdown()
public void scanRootRegion(MetaUtils.ScannerListener listener) throws IOException
listener
- method to be called for each meta region found
IOException
public void scanMetaRegion(HRegionInfo metaRegionInfo, MetaUtils.ScannerListener listener) throws IOException
metaRegionInfo
- HRegionInfo for meta regionlistener
- method to be called for each meta region found
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |