public class MetastoreHelper extends ServiceManagerHelper
Constructor and Description |
---|
MetastoreHelper() |
MetastoreHelper(String envFileName) |
Modifier and Type | Method and Description |
---|---|
void |
createDatabase(String dbName) |
void |
createDatabase(String dbName,
String sessionHandleString)
Create a database
|
void |
dropDatabase(String dbName) |
void |
dropDatabase(String dbName,
String sessionHandleString)
Drop a DB
|
String |
getCurrentDatabase() |
String |
getCurrentDatabase(String sessionHandleString)
Get Current Database for a Session
|
StringList |
listDatabases() |
StringList |
listDatabases(String sessionHandleString)
Get list of databases
|
void |
setCurrentDatabase(String currentDBName) |
void |
setCurrentDatabase(String sessionHandleString,
String currentDBName)
Set Current Database for a Session
|
closeSession, exec, exec, exec, exec, exec, execDELETE, execGET, execPOST, execPUT, getAdminUrl, getBaseUrl, getClientDir, getCurrentDB, getPassword, getServerDir, getServerHdfsUrl, getServerLens, getServiceURI, getSessionHandle, getSessionHandleString, getUserName, init, openSession, openSession, sendForm, sendQuery
public MetastoreHelper()
public MetastoreHelper(String envFileName)
public void setCurrentDatabase(String sessionHandleString, String currentDBName) throws JAXBException, LensException
sessionHandleString
- currentDBName
- JAXBException
LensException
public void setCurrentDatabase(String currentDBName) throws JAXBException, LensException
JAXBException
LensException
public String getCurrentDatabase(String sessionHandleString) throws JAXBException, LensException
sessionHandleString
- JAXBException
LensException
public String getCurrentDatabase() throws JAXBException, LensException
JAXBException
LensException
public StringList listDatabases(String sessionHandleString) throws JAXBException, LensException
sessionHandleString
- JAXBException
LensException
public StringList listDatabases() throws JAXBException, LensException
JAXBException
LensException
public void createDatabase(String dbName, String sessionHandleString) throws JAXBException, LensException
dbName
- sessionHandleString
- JAXBException
LensException
public void createDatabase(String dbName) throws JAXBException, LensException
JAXBException
LensException
public void dropDatabase(String dbName, String sessionHandleString) throws JAXBException, LensException
dbName
- sessionHandleString
- JAXBException
LensException
public void dropDatabase(String dbName) throws JAXBException, LensException
JAXBException
LensException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.