org.apache.hadoop.hbase.util
Class MetaUtils
java.lang.Object
org.apache.hadoop.hbase.util.MetaUtils
@InterfaceAudience.Private
public class MetaUtils
- extends Object
Contains utility methods for manipulating HBase meta tables.
Be sure to call shutdown()
when done with this class so it closes
resources opened during meta processing (ROOT, META, etc.). Be careful
how you use this class. If used during migrations, be careful when using
this class to check whether migration is needed.
Constructor Summary |
MetaUtils()
Default constructor |
MetaUtils(org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaUtils
public MetaUtils()
throws IOException
- Default constructor
- Throws:
IOException
- e
MetaUtils
public MetaUtils(org.apache.hadoop.conf.Configuration conf)
throws IOException
- Parameters:
conf
- Configuration
- Throws:
IOException
- e
getLog
public HLog getLog()
throws IOException
- Returns:
- the HLog
- Throws:
IOException
- e
getMetaRegion
public HRegion getMetaRegion()
throws IOException
- Returns:
- HRegion for meta region
- Throws:
IOException
- e
shutdown
public void shutdown()
- Closes catalog regions if open. Also closes and deletes the HLog. You
must call this method if you want to persist changes made during a
MetaUtils edit session.
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.