org.apache.lens.server.metastore
Class CubeMetastoreServiceImpl

java.lang.Object
  extended by org.apache.hive.service.AbstractService
      extended by org.apache.hive.service.CompositeService
          extended by org.apache.lens.server.LensService
              extended by org.apache.lens.server.metastore.CubeMetastoreServiceImpl
All Implemented Interfaces:
Externalizable, Serializable, org.apache.hive.service.Service, CubeMetastoreService

public class CubeMetastoreServiceImpl
extends LensService
implements CubeMetastoreService

See Also:
Serialized Form

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

LOG

public static final org.apache.log4j.Logger LOG
Constructor Detail

CubeMetastoreServiceImpl

public CubeMetastoreServiceImpl(org.apache.hive.service.cli.CLIService cliService)
Method Detail

getCurrentDatabase

public String getCurrentDatabase(org.apache.lens.api.LensSessionHandle sessionid)
                          throws org.apache.lens.api.LensException
Get current database used by the CubeMetastoreClient

Specified by:
getCurrentDatabase in interface CubeMetastoreService
Returns:
database name
Throws:
org.apache.lens.api.LensException

setCurrentDatabase

public void setCurrentDatabase(org.apache.lens.api.LensSessionHandle sessionid,
                               String database)
                        throws org.apache.lens.api.LensException
Change the current database used by the CubeMetastoreClient

Specified by:
setCurrentDatabase in interface CubeMetastoreService
Parameters:
database -
Throws:
org.apache.lens.api.LensException

dropDatabase

public void dropDatabase(org.apache.lens.api.LensSessionHandle sessionid,
                         String database,
                         boolean cascade)
                  throws org.apache.lens.api.LensException
Drop a database from cube metastore

Specified by:
dropDatabase in interface CubeMetastoreService
Parameters:
database - database name
cascade - flag indicating if the tables in the database should be dropped as well
Throws:
org.apache.lens.api.LensException

createDatabase

public void createDatabase(org.apache.lens.api.LensSessionHandle sessionid,
                           String database,
                           boolean ignore)
                    throws org.apache.lens.api.LensException
Create a database in Hive metastore

Specified by:
createDatabase in interface CubeMetastoreService
Parameters:
database - database name
ignore - ignore if database already exists
Throws:
org.apache.lens.api.LensException

getAllDatabases

public List<String> getAllDatabases(org.apache.lens.api.LensSessionHandle sessionid)
                             throws org.apache.lens.api.LensException
Specified by:
getAllDatabases in interface CubeMetastoreService
Returns:
get all database names
Throws:
org.apache.lens.api.LensException

getAllCubeNames

public List<String> getAllCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
                             throws org.apache.lens.api.LensException
Get list of all cubes names in the current database

Specified by:
getAllCubeNames in interface CubeMetastoreService
Returns:
List of cube names
Throws:
org.apache.lens.api.LensException

createCube

public void createCube(org.apache.lens.api.LensSessionHandle sessionid,
                       org.apache.lens.api.metastore.XCube cube)
                throws org.apache.lens.api.LensException
Create cube based on the JAXB cube object

Specified by:
createCube in interface CubeMetastoreService
Parameters:
cube -
Throws:
org.apache.lens.api.LensException

getCube

public org.apache.lens.api.metastore.XCube getCube(org.apache.lens.api.LensSessionHandle sessionid,
                                                   String cubeName)
                                            throws org.apache.lens.api.LensException
Get a cube from the metastore

Specified by:
getCube in interface CubeMetastoreService
Parameters:
cubeName -
Returns:
The cube object as XCube
Throws:
org.apache.lens.api.LensException

dropCube

public void dropCube(org.apache.lens.api.LensSessionHandle sessionid,
                     String cubeName)
              throws org.apache.lens.api.LensException
Drop a cube from the metastore in the currently deleted database

Specified by:
dropCube in interface CubeMetastoreService
Parameters:
cubeName -
Throws:
org.apache.lens.api.LensException

updateCube

public void updateCube(org.apache.lens.api.LensSessionHandle sessionid,
                       org.apache.lens.api.metastore.XCube cube)
                throws org.apache.lens.api.LensException
Update cube

Specified by:
updateCube in interface CubeMetastoreService
Parameters:
cube - JAXB Cube object
Throws:
org.apache.lens.api.LensException

createDimensionTable

public void createDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
                                 org.apache.lens.api.metastore.XDimensionTable xDimTable)
                          throws org.apache.lens.api.LensException
Create a cube dimension table based on JAXB object

Specified by:
createDimensionTable in interface CubeMetastoreService
Parameters:
xDimTable -
Throws:
org.apache.lens.api.LensException

dropDimensionTable

public void dropDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
                               String dimTblName,
                               boolean cascade)
                        throws org.apache.lens.api.LensException
Specified by:
dropDimensionTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getDimensionTable

public org.apache.lens.api.metastore.XDimensionTable getDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
                                                                       String dimTblName)
                                                                throws org.apache.lens.api.LensException
Specified by:
getDimensionTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

updateDimensionTable

public void updateDimensionTable(org.apache.lens.api.LensSessionHandle sessionid,
                                 org.apache.lens.api.metastore.XDimensionTable dimensionTable)
                          throws org.apache.lens.api.LensException
Specified by:
updateDimensionTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getDimTableStorages

public List<String> getDimTableStorages(org.apache.lens.api.LensSessionHandle sessionid,
                                        String dimension)
                                 throws org.apache.lens.api.LensException
Specified by:
getDimTableStorages in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

addDimTableStorage

public void addDimTableStorage(org.apache.lens.api.LensSessionHandle sessionid,
                               String dimTblName,
                               org.apache.lens.api.metastore.XStorageTableElement storageTable)
                        throws org.apache.lens.api.LensException
Specified by:
addDimTableStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropAllStoragesOfDimTable

public void dropAllStoragesOfDimTable(org.apache.lens.api.LensSessionHandle sessionid,
                                      String dimTblName)
                               throws org.apache.lens.api.LensException
Specified by:
dropAllStoragesOfDimTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropAllStoragesOfFact

public void dropAllStoragesOfFact(org.apache.lens.api.LensSessionHandle sessionid,
                                  String factName)
                           throws org.apache.lens.api.LensException
Specified by:
dropAllStoragesOfFact in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropStorageOfDimTable

public void dropStorageOfDimTable(org.apache.lens.api.LensSessionHandle sessionid,
                                  String dimTblName,
                                  String storage)
                           throws org.apache.lens.api.LensException
Specified by:
dropStorageOfDimTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllFactsOfCube

public List<org.apache.lens.api.metastore.XFactTable> getAllFactsOfCube(org.apache.lens.api.LensSessionHandle sessionid,
                                                                        String cubeName)
                                                                 throws org.apache.lens.api.LensException
Specified by:
getAllFactsOfCube in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getFactTable

public org.apache.lens.api.metastore.XFactTable getFactTable(org.apache.lens.api.LensSessionHandle sessionid,
                                                             String fact)
                                                      throws org.apache.lens.api.LensException
Specified by:
getFactTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

createFactTable

public void createFactTable(org.apache.lens.api.LensSessionHandle sessionid,
                            org.apache.lens.api.metastore.XFactTable fact)
                     throws org.apache.lens.api.LensException
Specified by:
createFactTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

updateFactTable

public void updateFactTable(org.apache.lens.api.LensSessionHandle sessionid,
                            org.apache.lens.api.metastore.XFactTable fact)
                     throws org.apache.lens.api.LensException
Specified by:
updateFactTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropFactTable

public void dropFactTable(org.apache.lens.api.LensSessionHandle sessionid,
                          String fact,
                          boolean cascade)
                   throws org.apache.lens.api.LensException
Specified by:
dropFactTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllFactNames

public List<String> getAllFactNames(org.apache.lens.api.LensSessionHandle sessionid)
                             throws org.apache.lens.api.LensException
Specified by:
getAllFactNames in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllDimTableNames

public List<String> getAllDimTableNames(org.apache.lens.api.LensSessionHandle sessionid)
                                 throws org.apache.lens.api.LensException
Specified by:
getAllDimTableNames in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getStoragesOfFact

public List<String> getStoragesOfFact(org.apache.lens.api.LensSessionHandle sessionid,
                                      String fact)
                               throws org.apache.lens.api.LensException
Specified by:
getStoragesOfFact in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getStorageOfFact

public org.apache.lens.api.metastore.XStorageTableElement getStorageOfFact(org.apache.lens.api.LensSessionHandle sessionid,
                                                                           String fact,
                                                                           String storageName)
                                                                    throws org.apache.lens.api.LensException
Specified by:
getStorageOfFact in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getStorageOfDim

public org.apache.lens.api.metastore.XStorageTableElement getStorageOfDim(org.apache.lens.api.LensSessionHandle sessionid,
                                                                          String dimTblName,
                                                                          String storageName)
                                                                   throws org.apache.lens.api.LensException
Specified by:
getStorageOfDim in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

addStorageToFact

public void addStorageToFact(org.apache.lens.api.LensSessionHandle sessionid,
                             String fact,
                             org.apache.lens.api.metastore.XStorageTableElement storageTable)
                      throws org.apache.lens.api.LensException
Specified by:
addStorageToFact in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropStorageOfFact

public void dropStorageOfFact(org.apache.lens.api.LensSessionHandle sessionid,
                              String fact,
                              String storage)
                       throws org.apache.lens.api.LensException
Specified by:
dropStorageOfFact in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllPartitionsOfFactStorage

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
Specified by:
getAllPartitionsOfFactStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

addPartitionToFactStorage

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
Specified by:
addPartitionToFactStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllPartitionsOfDimTableStorage

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
Specified by:
getAllPartitionsOfDimTableStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

addPartitionToDimStorage

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
Specified by:
addPartitionToDimStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropPartitionFromStorageByValues

public void dropPartitionFromStorageByValues(org.apache.lens.api.LensSessionHandle sessionid,
                                             String cubeTableName,
                                             String storageName,
                                             String values)
                                      throws org.apache.lens.api.LensException
Specified by:
dropPartitionFromStorageByValues in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropPartitionFromStorageByFilter

public void dropPartitionFromStorageByFilter(org.apache.lens.api.LensSessionHandle sessionid,
                                             String cubeTableName,
                                             String storageName,
                                             String filter)
                                      throws org.apache.lens.api.LensException
Specified by:
dropPartitionFromStorageByFilter in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

createStorage

public void createStorage(org.apache.lens.api.LensSessionHandle sessionid,
                          org.apache.lens.api.metastore.XStorage storage)
                   throws org.apache.lens.api.LensException
Specified by:
createStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropStorage

public void dropStorage(org.apache.lens.api.LensSessionHandle sessionid,
                        String storageName)
                 throws org.apache.lens.api.LensException
Specified by:
dropStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

alterStorage

public void alterStorage(org.apache.lens.api.LensSessionHandle sessionid,
                         String storageName,
                         org.apache.lens.api.metastore.XStorage storage)
                  throws org.apache.lens.api.LensException
Specified by:
alterStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getStorage

public org.apache.lens.api.metastore.XStorage getStorage(org.apache.lens.api.LensSessionHandle sessionid,
                                                         String storageName)
                                                  throws org.apache.lens.api.LensException
Specified by:
getStorage in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllStorageNames

public List<String> getAllStorageNames(org.apache.lens.api.LensSessionHandle sessionid)
                                throws org.apache.lens.api.LensException
Specified by:
getAllStorageNames in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllBaseCubeNames

public List<String> getAllBaseCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
                                 throws org.apache.lens.api.LensException
Specified by:
getAllBaseCubeNames in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllDerivedCubeNames

public List<String> getAllDerivedCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
                                    throws org.apache.lens.api.LensException
Specified by:
getAllDerivedCubeNames in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllQueryableCubeNames

public List<String> getAllQueryableCubeNames(org.apache.lens.api.LensSessionHandle sessionid)
                                      throws org.apache.lens.api.LensException
Specified by:
getAllQueryableCubeNames in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

createDimension

public void createDimension(org.apache.lens.api.LensSessionHandle sessionid,
                            org.apache.lens.api.metastore.XDimension dimension)
                     throws org.apache.lens.api.LensException
Specified by:
createDimension in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getDimension

public org.apache.lens.api.metastore.XDimension getDimension(org.apache.lens.api.LensSessionHandle sessionid,
                                                             String dimName)
                                                      throws org.apache.lens.api.LensException
Specified by:
getDimension in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

dropDimension

public void dropDimension(org.apache.lens.api.LensSessionHandle sessionid,
                          String dimName)
                   throws org.apache.lens.api.LensException
Specified by:
dropDimension in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

updateDimension

public void updateDimension(org.apache.lens.api.LensSessionHandle sessionid,
                            String dimName,
                            org.apache.lens.api.metastore.XDimension dimension)
                     throws org.apache.lens.api.LensException
Specified by:
updateDimension in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllDimensionNames

public List<String> getAllDimensionNames(org.apache.lens.api.LensSessionHandle sessionid)
                                  throws org.apache.lens.api.LensException
Specified by:
getAllDimensionNames in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getNativeTable

public org.apache.lens.api.metastore.XNativeTable getNativeTable(org.apache.lens.api.LensSessionHandle sessionid,
                                                                 String name)
                                                          throws org.apache.lens.api.LensException
Specified by:
getNativeTable in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getAllNativeTableNames

public List<String> getAllNativeTableNames(org.apache.lens.api.LensSessionHandle sessionid,
                                           String dbOption,
                                           String dbName)
                                    throws org.apache.lens.api.LensException
Specified by:
getAllNativeTableNames in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getFlattenedColumns

public org.apache.lens.api.metastore.XFlattenedColumns getFlattenedColumns(org.apache.lens.api.LensSessionHandle sessionHandle,
                                                                           String tableName)
                                                                    throws org.apache.lens.api.LensException
Specified by:
getFlattenedColumns in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException

getLatestDateOfCube

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
Specified by:
getLatestDateOfCube in interface CubeMetastoreService
Throws:
org.apache.lens.api.LensException
org.apache.hadoop.hive.ql.metadata.HiveException


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.