|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hive.service.AbstractService
org.apache.hive.service.CompositeService
org.apache.lens.server.LensService
org.apache.lens.server.metastore.CubeMetastoreServiceImpl
public class CubeMetastoreServiceImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hive.service.CompositeService |
|---|
org.apache.hive.service.CompositeService.CompositeServiceShutdownHook |
| Nested classes/interfaces inherited from interface org.apache.hive.service.Service |
|---|
org.apache.hive.service.Service.STATE |
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOG
|
| Fields inherited from class org.apache.lens.server.LensService |
|---|
sessionMap, stopped |
| Constructor Summary | |
|---|---|
CubeMetastoreServiceImpl(org.apache.hive.service.cli.CLIService cliService)
|
|
| Method Summary | |
|---|---|
void |
addDimTableStorage(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
org.apache.lens.api.metastore.XStorageTableElement storageTable)
|
void |
addPartitionToDimStorage(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
String storageName,
org.apache.lens.api.metastore.XPartition partition)
|
void |
addPartitionToFactStorage(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
String storageName,
org.apache.lens.api.metastore.XPartition partition)
|
void |
addStorageToFact(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
org.apache.lens.api.metastore.XStorageTableElement storageTable)
|
void |
alterStorage(org.apache.lens.api.LensSessionHandle sessionid,
String storageName,
org.apache.lens.api.metastore.XStorage storage)
|
void |
createCube(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XCube cube)
Create cube based on the JAXB cube object |
void |
createDatabase(org.apache.lens.api.LensSessionHandle sessionid,
String database,
boolean ignore)
Create a database in Hive metastore |
void |
createDimension(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XDimension dimension)
|
void |
createDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XDimensionTable xDimTable)
Create a cube dimension table based on JAXB object |
void |
createFactTable(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XFactTable fact)
|
void |
createStorage(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XStorage storage)
|
void |
dropAllStoragesOfDimTable(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName)
|
void |
dropAllStoragesOfFact(org.apache.lens.api.LensSessionHandle sessionid,
String factName)
|
void |
dropCube(org.apache.lens.api.LensSessionHandle sessionid,
String cubeName)
Drop a cube from the metastore in the currently deleted database |
void |
dropDatabase(org.apache.lens.api.LensSessionHandle sessionid,
String database,
boolean cascade)
Drop a database from cube metastore |
void |
dropDimension(org.apache.lens.api.LensSessionHandle sessionid,
String dimName)
|
void |
dropDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
boolean cascade)
|
void |
dropFactTable(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
boolean cascade)
|
void |
dropPartitionFromStorageByFilter(org.apache.lens.api.LensSessionHandle sessionid,
String cubeTableName,
String storageName,
String filter)
|
void |
dropPartitionFromStorageByValues(org.apache.lens.api.LensSessionHandle sessionid,
String cubeTableName,
String storageName,
String values)
|
void |
dropStorage(org.apache.lens.api.LensSessionHandle sessionid,
String storageName)
|
void |
dropStorageOfDimTable(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
String storage)
|
void |
dropStorageOfFact(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
String storage)
|
List<String> |
getAllBaseCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
|
List<String> |
getAllCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
Get list of all cubes names in the current database |
List<String> |
getAllDatabases(org.apache.lens.api.LensSessionHandle sessionid)
|
List<String> |
getAllDerivedCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
|
List<String> |
getAllDimensionNames(org.apache.lens.api.LensSessionHandle sessionid)
|
List<String> |
getAllDimTableNames(org.apache.lens.api.LensSessionHandle sessionid)
|
List<String> |
getAllFactNames(org.apache.lens.api.LensSessionHandle sessionid)
|
List<org.apache.lens.api.metastore.XFactTable> |
getAllFactsOfCube(org.apache.lens.api.LensSessionHandle sessionid,
String cubeName)
|
List<String> |
getAllNativeTableNames(org.apache.lens.api.LensSessionHandle sessionid,
String dbOption,
String dbName)
|
List<org.apache.lens.api.metastore.XPartition> |
getAllPartitionsOfDimTableStorage(org.apache.lens.api.LensSessionHandle sessionid,
String dimension,
String storageName,
String filter)
|
List<org.apache.lens.api.metastore.XPartition> |
getAllPartitionsOfFactStorage(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
String storageName,
String filter)
|
List<String> |
getAllQueryableCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
|
List<String> |
getAllStorageNames(org.apache.lens.api.LensSessionHandle sessionid)
|
org.apache.lens.api.metastore.XCube |
getCube(org.apache.lens.api.LensSessionHandle sessionid,
String cubeName)
Get a cube from the metastore |
String |
getCurrentDatabase(org.apache.lens.api.LensSessionHandle sessionid)
Get current database used by the CubeMetastoreClient |
org.apache.lens.api.metastore.XDimension |
getDimension(org.apache.lens.api.LensSessionHandle sessionid,
String dimName)
|
org.apache.lens.api.metastore.XDimensionTable |
getDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName)
|
List<String> |
getDimTableStorages(org.apache.lens.api.LensSessionHandle sessionid,
String dimension)
|
org.apache.lens.api.metastore.XFactTable |
getFactTable(org.apache.lens.api.LensSessionHandle sessionid,
String fact)
|
org.apache.lens.api.metastore.XFlattenedColumns |
getFlattenedColumns(org.apache.lens.api.LensSessionHandle sessionHandle,
String tableName)
|
Date |
getLatestDateOfCube(org.apache.lens.api.LensSessionHandle sessionid,
String cubeName,
String timeDimension)
|
org.apache.lens.api.metastore.XNativeTable |
getNativeTable(org.apache.lens.api.LensSessionHandle sessionid,
String name)
|
org.apache.lens.api.metastore.XStorage |
getStorage(org.apache.lens.api.LensSessionHandle sessionid,
String storageName)
|
org.apache.lens.api.metastore.XStorageTableElement |
getStorageOfDim(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
String storageName)
|
org.apache.lens.api.metastore.XStorageTableElement |
getStorageOfFact(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
String storageName)
|
List<String> |
getStoragesOfFact(org.apache.lens.api.LensSessionHandle sessionid,
String fact)
|
void |
setCurrentDatabase(org.apache.lens.api.LensSessionHandle sessionid,
String database)
Change the current database used by the CubeMetastoreClient |
void |
updateCube(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XCube cube)
Update cube |
void |
updateDimension(org.apache.lens.api.LensSessionHandle sessionid,
String dimName,
org.apache.lens.api.metastore.XDimension dimension)
|
void |
updateDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XDimensionTable dimensionTable)
|
void |
updateFactTable(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XFactTable fact)
|
| Methods inherited from class org.apache.lens.server.LensService |
|---|
acquire, acquire, addResource, closeSession, deleteResource, getCliService, getHiveSessionHandle, getLensConf, getLensConf, getServerDomain, getSession, getSessionHandle, getSessionManager, openSession, prepareStopping, readExternal, release, release, restoreSession, writeExternal |
| Methods inherited from class org.apache.hive.service.CompositeService |
|---|
addService, getServices, init, removeService, start, stop |
| Methods inherited from class org.apache.hive.service.AbstractService |
|---|
getHiveConf, getName, getServiceState, getStartTime, register, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger LOG
| Constructor Detail |
|---|
public CubeMetastoreServiceImpl(org.apache.hive.service.cli.CLIService cliService)
| Method Detail |
|---|
public String getCurrentDatabase(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getCurrentDatabase in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void setCurrentDatabase(org.apache.lens.api.LensSessionHandle sessionid,
String database)
throws org.apache.lens.api.LensException
setCurrentDatabase in interface CubeMetastoreServicedatabase -
org.apache.lens.api.LensException
public void dropDatabase(org.apache.lens.api.LensSessionHandle sessionid,
String database,
boolean cascade)
throws org.apache.lens.api.LensException
dropDatabase in interface CubeMetastoreServicedatabase - database namecascade - flag indicating if the tables in the database should be dropped as well
org.apache.lens.api.LensException
public void createDatabase(org.apache.lens.api.LensSessionHandle sessionid,
String database,
boolean ignore)
throws org.apache.lens.api.LensException
createDatabase in interface CubeMetastoreServicedatabase - database nameignore - ignore if database already exists
org.apache.lens.api.LensException
public List<String> getAllDatabases(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllDatabases in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllCubeNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void createCube(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XCube cube)
throws org.apache.lens.api.LensException
createCube in interface CubeMetastoreServicecube -
org.apache.lens.api.LensException
public org.apache.lens.api.metastore.XCube getCube(org.apache.lens.api.LensSessionHandle sessionid,
String cubeName)
throws org.apache.lens.api.LensException
getCube in interface CubeMetastoreServicecubeName -
XCube
org.apache.lens.api.LensException
public void dropCube(org.apache.lens.api.LensSessionHandle sessionid,
String cubeName)
throws org.apache.lens.api.LensException
dropCube in interface CubeMetastoreServicecubeName -
org.apache.lens.api.LensException
public void updateCube(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XCube cube)
throws org.apache.lens.api.LensException
updateCube in interface CubeMetastoreServicecube - JAXB Cube object
org.apache.lens.api.LensException
public void createDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XDimensionTable xDimTable)
throws org.apache.lens.api.LensException
createDimensionTable in interface CubeMetastoreServicexDimTable -
org.apache.lens.api.LensException
public void dropDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
boolean cascade)
throws org.apache.lens.api.LensException
dropDimensionTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public org.apache.lens.api.metastore.XDimensionTable getDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName)
throws org.apache.lens.api.LensException
getDimensionTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void updateDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XDimensionTable dimensionTable)
throws org.apache.lens.api.LensException
updateDimensionTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getDimTableStorages(org.apache.lens.api.LensSessionHandle sessionid,
String dimension)
throws org.apache.lens.api.LensException
getDimTableStorages in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void addDimTableStorage(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
org.apache.lens.api.metastore.XStorageTableElement storageTable)
throws org.apache.lens.api.LensException
addDimTableStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropAllStoragesOfDimTable(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName)
throws org.apache.lens.api.LensException
dropAllStoragesOfDimTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropAllStoragesOfFact(org.apache.lens.api.LensSessionHandle sessionid,
String factName)
throws org.apache.lens.api.LensException
dropAllStoragesOfFact in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropStorageOfDimTable(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
String storage)
throws org.apache.lens.api.LensException
dropStorageOfDimTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<org.apache.lens.api.metastore.XFactTable> getAllFactsOfCube(org.apache.lens.api.LensSessionHandle sessionid,
String cubeName)
throws org.apache.lens.api.LensException
getAllFactsOfCube in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public org.apache.lens.api.metastore.XFactTable getFactTable(org.apache.lens.api.LensSessionHandle sessionid,
String fact)
throws org.apache.lens.api.LensException
getFactTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void createFactTable(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XFactTable fact)
throws org.apache.lens.api.LensException
createFactTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void updateFactTable(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XFactTable fact)
throws org.apache.lens.api.LensException
updateFactTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropFactTable(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
boolean cascade)
throws org.apache.lens.api.LensException
dropFactTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllFactNames(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllFactNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllDimTableNames(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllDimTableNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getStoragesOfFact(org.apache.lens.api.LensSessionHandle sessionid,
String fact)
throws org.apache.lens.api.LensException
getStoragesOfFact in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public org.apache.lens.api.metastore.XStorageTableElement getStorageOfFact(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
String storageName)
throws org.apache.lens.api.LensException
getStorageOfFact in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public org.apache.lens.api.metastore.XStorageTableElement getStorageOfDim(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
String storageName)
throws org.apache.lens.api.LensException
getStorageOfDim in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void addStorageToFact(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
org.apache.lens.api.metastore.XStorageTableElement storageTable)
throws org.apache.lens.api.LensException
addStorageToFact in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropStorageOfFact(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
String storage)
throws org.apache.lens.api.LensException
dropStorageOfFact in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<org.apache.lens.api.metastore.XPartition> getAllPartitionsOfFactStorage(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
String storageName,
String filter)
throws org.apache.lens.api.LensException
getAllPartitionsOfFactStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void addPartitionToFactStorage(org.apache.lens.api.LensSessionHandle sessionid,
String fact,
String storageName,
org.apache.lens.api.metastore.XPartition partition)
throws org.apache.lens.api.LensException
addPartitionToFactStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<org.apache.lens.api.metastore.XPartition> getAllPartitionsOfDimTableStorage(org.apache.lens.api.LensSessionHandle sessionid,
String dimension,
String storageName,
String filter)
throws org.apache.lens.api.LensException
getAllPartitionsOfDimTableStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void addPartitionToDimStorage(org.apache.lens.api.LensSessionHandle sessionid,
String dimTblName,
String storageName,
org.apache.lens.api.metastore.XPartition partition)
throws org.apache.lens.api.LensException
addPartitionToDimStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropPartitionFromStorageByValues(org.apache.lens.api.LensSessionHandle sessionid,
String cubeTableName,
String storageName,
String values)
throws org.apache.lens.api.LensException
dropPartitionFromStorageByValues in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropPartitionFromStorageByFilter(org.apache.lens.api.LensSessionHandle sessionid,
String cubeTableName,
String storageName,
String filter)
throws org.apache.lens.api.LensException
dropPartitionFromStorageByFilter in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void createStorage(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XStorage storage)
throws org.apache.lens.api.LensException
createStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropStorage(org.apache.lens.api.LensSessionHandle sessionid,
String storageName)
throws org.apache.lens.api.LensException
dropStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void alterStorage(org.apache.lens.api.LensSessionHandle sessionid,
String storageName,
org.apache.lens.api.metastore.XStorage storage)
throws org.apache.lens.api.LensException
alterStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public org.apache.lens.api.metastore.XStorage getStorage(org.apache.lens.api.LensSessionHandle sessionid,
String storageName)
throws org.apache.lens.api.LensException
getStorage in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllStorageNames(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllStorageNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllBaseCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllBaseCubeNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllDerivedCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllDerivedCubeNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllQueryableCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllQueryableCubeNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void createDimension(org.apache.lens.api.LensSessionHandle sessionid,
org.apache.lens.api.metastore.XDimension dimension)
throws org.apache.lens.api.LensException
createDimension in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public org.apache.lens.api.metastore.XDimension getDimension(org.apache.lens.api.LensSessionHandle sessionid,
String dimName)
throws org.apache.lens.api.LensException
getDimension in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void dropDimension(org.apache.lens.api.LensSessionHandle sessionid,
String dimName)
throws org.apache.lens.api.LensException
dropDimension in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public void updateDimension(org.apache.lens.api.LensSessionHandle sessionid,
String dimName,
org.apache.lens.api.metastore.XDimension dimension)
throws org.apache.lens.api.LensException
updateDimension in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllDimensionNames(org.apache.lens.api.LensSessionHandle sessionid)
throws org.apache.lens.api.LensException
getAllDimensionNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public org.apache.lens.api.metastore.XNativeTable getNativeTable(org.apache.lens.api.LensSessionHandle sessionid,
String name)
throws org.apache.lens.api.LensException
getNativeTable in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public List<String> getAllNativeTableNames(org.apache.lens.api.LensSessionHandle sessionid,
String dbOption,
String dbName)
throws org.apache.lens.api.LensException
getAllNativeTableNames in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public org.apache.lens.api.metastore.XFlattenedColumns getFlattenedColumns(org.apache.lens.api.LensSessionHandle sessionHandle,
String tableName)
throws org.apache.lens.api.LensException
getFlattenedColumns in interface CubeMetastoreServiceorg.apache.lens.api.LensException
public Date getLatestDateOfCube(org.apache.lens.api.LensSessionHandle sessionid,
String cubeName,
String timeDimension)
throws org.apache.lens.api.LensException,
org.apache.hadoop.hive.ql.metadata.HiveException
getLatestDateOfCube in interface CubeMetastoreServiceorg.apache.lens.api.LensException
org.apache.hadoop.hive.ql.metadata.HiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||