@Internal public final class EmbeddedMetastoreService extends java.lang.Object implements java.lang.AutoCloseable
Used only for testing.
Constructor and Description |
---|
EmbeddedMetastoreService(java.lang.String baseDirPath) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
executeQuery(java.lang.String query)
Executes the passed query on the embedded metastore service.
|
org.apache.hadoop.hive.conf.HiveConf |
getHiveConf()
Returns the HiveConf object for the embedded metastore.
|
java.util.Map<java.lang.String,java.lang.String> |
getHiveConfAsMap() |
public EmbeddedMetastoreService(java.lang.String baseDirPath) throws java.io.IOException
java.io.IOException
public void executeQuery(java.lang.String query)
public org.apache.hadoop.hive.conf.HiveConf getHiveConf()
public java.util.Map<java.lang.String,java.lang.String> getHiveConfAsMap()
public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception