public class MetastoreHelper extends ServiceManagerHelper
Constructor and Description |
---|
MetastoreHelper() |
MetastoreHelper(String envFileName) |
Modifier and Type | Method and Description |
---|---|
void |
createCube(XCube cube) |
void |
createCube(XCube cube,
String sessionHandleString) |
void |
createDatabase(String dbName) |
void |
createDatabase(String dbName,
String sessionHandleString)
Create a database
|
void |
createDimTable(XDimensionTable dt) |
void |
createDimTable(XDimensionTable dt,
String sessionHandleString) |
void |
createFacts(XFactTable facts) |
void |
createFacts(XFactTable facts,
String sessionHandleString) |
void |
createStorage(XStorage storage) |
void |
createStorage(XStorage storage,
String sessionHandleString) |
void |
dropCube(String cubeName) |
void |
dropCube(String cubeName,
String sessionHandleString) |
void |
dropDatabase(String dbName) |
void |
dropDatabase(String dbName,
String sessionHandleString)
Drop a DB
|
void |
dropStorage(String storageName) |
void |
dropStorage(String storageName,
String sessionHandleString) |
StringList |
getAllFactsOfCube(String cubeName,
String sessionHandleString) |
XCube |
getCube(String cubeName) |
XCube |
getCube(String cubeName,
String sessionHandleString) |
String |
getCurrentDatabase() |
String |
getCurrentDatabase(String sessionHandleString)
Get Current Database for a Session
|
XDimension |
getDimension(String dimName) |
XDimension |
getDimension(String dimName,
String sessionHandleString) |
XDimensionTable |
getDimensionTable(String dimName) |
XDimensionTable |
getDimensionTable(String dimName,
String sessionHandleString) |
XFactTable |
getFact(String factName) |
XFactTable |
getFact(String factName,
String sessionHandleString) |
void |
getLatestDate() |
void |
getLatestDate(String sessionHandleString) |
StringList |
listCubes() |
StringList |
listCubes(String type) |
StringList |
listCubes(String type,
String sessionHandleString) |
StringList |
listDatabases() |
StringList |
listDatabases(String sessionHandleString)
Get list of databases
|
StringList |
listStorages() |
StringList |
listStorages(String sessionHandleString) |
void |
setCurrentDatabase(String currentDBName) |
void |
setCurrentDatabase(String sessionHandleString,
String currentDBName)
Set Current Database for a Session
|
void |
updateCube(XCube cube,
String cubeName) |
void |
updateCube(XCube cube,
String cubeName,
String sessionHandleString) |
exec, exec, exec, exec, exec, execDELETE, execGET, execPOST, execPUT, getAdminUrl, getBaseUrl, getClientDir, getCurrentDB, getJobConfUrl, getPassword, getServerDir, getServerHdfsUrl, getServerLens, getServiceURI, getSessionHandleString, getStartDate, getUserName, init, 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
public void createStorage(XStorage storage, String sessionHandleString) throws Exception
Exception
public void dropStorage(String storageName, String sessionHandleString) throws JAXBException, LensException
JAXBException
LensException
public void dropStorage(String storageName) throws JAXBException, LensException
JAXBException
LensException
public StringList listStorages(String sessionHandleString) throws JAXBException, LensException
JAXBException
LensException
public StringList listStorages() throws JAXBException, LensException
JAXBException
LensException
public void createCube(XCube cube, String sessionHandleString) throws Exception
Exception
public void createFacts(XFactTable facts, String sessionHandleString) throws Exception
Exception
public void createFacts(XFactTable facts) throws Exception
Exception
public StringList listCubes(String type, String sessionHandleString) throws Exception
Exception
public StringList listCubes(String type) throws Exception
Exception
public StringList listCubes() throws Exception
Exception
public XCube getCube(String cubeName, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public XCube getCube(String cubeName) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public XFactTable getFact(String factName, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public XFactTable getFact(String factName) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public XDimension getDimension(String dimName, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public XDimension getDimension(String dimName) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public XDimensionTable getDimensionTable(String dimName, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public XDimensionTable getDimensionTable(String dimName) throws InstantiationException, IllegalAccessException, JAXBException, LensException
public void updateCube(XCube cube, String cubeName, String sessionHandleString) throws Exception
Exception
public void dropCube(String cubeName, String sessionHandleString) throws JAXBException, LensException
JAXBException
LensException
public void dropCube(String cubeName) throws JAXBException, LensException
JAXBException
LensException
public void createDimTable(XDimensionTable dt, String sessionHandleString) throws Exception
Exception
public void createDimTable(XDimensionTable dt) throws Exception
Exception
public void getLatestDate(String sessionHandleString) throws Exception
Exception
public StringList getAllFactsOfCube(String cubeName, String sessionHandleString) throws InstantiationException, IllegalAccessException, JAXBException, LensException
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.