public class MetastoreResource extends Object
This provides api for all things metastore.
| Modifier and Type | Class and Description |
|---|---|
static class |
MetastoreResource.Entity |
| Modifier and Type | Field and Description |
|---|---|
static ObjectFactory |
X_CUBE_OBJECT_FACTORY |
| Constructor and Description |
|---|
MetastoreResource() |
| Modifier and Type | Method and Description |
|---|---|
APIResult |
addPartitionsToDimStorage(LensSessionHandle sessionid,
String dimTableName,
String storage,
XPartitionList partitions)
Add new partitions for a storage of dimension
|
APIResult |
addPartitionsToFactStorage(LensSessionHandle sessionid,
String factName,
String storage,
XPartitionList partitions)
Batch Add partitions for a storage of fact
|
APIResult |
addPartitionToDimStorage(LensSessionHandle sessionid,
String dimTableName,
String storage,
XPartition partition)
Add a new partition for a storage of dimension
|
APIResult |
addPartitionToFactStorage(LensSessionHandle sessionid,
String factName,
String storage,
XPartition partition)
Add a new partition for a storage of fact
|
APIResult |
addStorageToFact(LensSessionHandle sessionid,
String factName,
XStorageTableElement storageTable)
Add storage to fact table
|
APIResult |
createDatabase(LensSessionHandle sessionid,
boolean ignoreIfExisting,
String dbName)
Create a new database
|
APIResult |
createDimension(LensSessionHandle sessionid,
XDimension dimension)
Create new dimension
|
APIResult |
createDimensionStorage(LensSessionHandle sessionid,
String dimTableName,
XStorageTableElement storageTbl)
Add storage to dimension table
|
APIResult |
createDimensionTable(LensSessionHandle sessionid,
XDimensionTable dimensionTable)
Create a new dimension table
|
APIResult |
createFactTable(LensSessionHandle sessionid,
XFactTable fact)
Create a new fact tabble
|
APIResult |
createNewCube(LensSessionHandle sessionid,
XCube cube)
Create a new cube
|
APIResult |
createNewStorage(LensSessionHandle sessionid,
XStorage storage)
Create new storage
|
APIResult |
createSegmentation(LensSessionHandle sessionid,
XSegmentation seg)
Create a new segmentation
|
APIResult |
deleteAllCubes(LensSessionHandle sessionid)
Delete all cubes
|
APIResult |
deleteAllDimensions(LensSessionHandle sessionid)
Delete all dimensions in metastore
|
APIResult |
deleteAllFacts(LensSessionHandle sessionid,
boolean cascade)
Delete all fact tables
|
APIResult |
deleteAllSegmentations(LensSessionHandle sessionid)
Delete all segmentations
|
APIResult |
deleteAllStorages(LensSessionHandle sessionid)
Delete all storages in metastore
|
APIResult |
dropAllStoragesOfDim(LensSessionHandle sessionid,
String dimTableName)
Drop all the storage tables of a dimension table
|
APIResult |
dropAllStoragesOfFact(LensSessionHandle sessionid,
String factName)
Drop all the storage tables of a fact table
|
APIResult |
dropCube(LensSessionHandle sessionid,
String cubeName)
Drop the cube, specified by name
|
APIResult |
dropDatabase(LensSessionHandle sessionid,
String dbName,
boolean cascade)
Delete the db specified by name.
|
APIResult |
dropDimension(LensSessionHandle sessionid,
String dimName)
Drop the dimension, specified by name
|
APIResult |
dropDimensionTable(LensSessionHandle sessionid,
String dimension,
boolean cascade)
Drop the dimension table, specified by name
|
APIResult |
dropFactTable(LensSessionHandle sessionid,
String factName,
boolean cascade)
Drop the fact table, specified by name
|
APIResult |
dropPartitionOfFactStorageByValues(LensSessionHandle sessionid,
String factName,
String storage,
String values)
Drop the partitions in the storage of a fact table, specified by exact values
|
APIResult |
dropPartitionsOfDimStorageByFilter(LensSessionHandle sessionid,
String dimTableName,
String storage,
String filter)
Drop the partitions in the storage of a dimension table; can specified filter as well
|
APIResult |
dropPartitionsOfDimStorageByValue(LensSessionHandle sessionid,
String dimTableName,
String storage,
String values)
Drop the partitions in the storage of a dimension table, specified by exact values
|
APIResult |
dropPartitionsOfFactStorageByFilter(LensSessionHandle sessionid,
String factName,
String storage,
String filter)
Drop the partitions in the storage of a fact; can specified filter as well
|
APIResult |
dropSegmentation(LensSessionHandle sessionid,
String segmentationName)
Drop the segmentation, specified by name
|
APIResult |
dropStorage(LensSessionHandle sessionid,
String storageName)
Drop the storage, specified by name
|
APIResult |
dropStorageFromFact(LensSessionHandle sessionid,
String factName,
String storage)
Drop the storage of a fact, specified by name
|
APIResult |
dropStorageOfDim(LensSessionHandle sessionid,
String dimTableName,
String storage)
Drop the storage of a dimension table, specified by name
|
StringList |
getAllCubes(LensSessionHandle sessionid,
String cubeTypes)
Get all cubes in the metastores, of the specified type
|
StringList |
getAllDatabases(LensSessionHandle sessionid)
Get all databases in the metastore
|
StringList |
getAllDimensionNames(LensSessionHandle sessionid)
Get all dimensions in the metastore
|
StringList |
getAllDimensionTablesOfDimension(LensSessionHandle sessionid,
String dimensionName)
Get all dimtables that belong to a dimension in the metastore
|
StringList |
getAllDims(LensSessionHandle sessionid)
Get all dimension tables in the metastore
|
StringList |
getAllFacts(LensSessionHandle sessionid)
Get all fact tables in the metastore in the current database
|
StringList |
getAllFactsOfCube(LensSessionHandle sessionid,
String cubeName)
Get all facts that belong to a cube in the metastore
|
JAXBElement<XJoinChains> |
getAllJoinChains(LensSessionHandle sessionid,
String tableName)
Get all chains that belong to a table(cube or dimension) in the metastore
|
StringList |
getAllNativeTables(LensSessionHandle sessionid,
String dbOption,
String dbName)
Get all native tables.
|
JAXBElement<XPartitionList> |
getAllPartitionsOfDimStorage(LensSessionHandle sessionid,
String dimension,
String storage,
String filter)
Get all partition of the dimension table in the specified storage; can be filtered
|
JAXBElement<XPartitionList> |
getAllPartitionsOfFactStorageByFilter(LensSessionHandle sessionid,
String factName,
String storage,
String filter)
Get all partitions of the fact table in the specified storage; can be filtered as well.
|
StringList |
getAllSegmentations(LensSessionHandle sessionid)
Get all segmentations in the current database
|
StringList |
getAllSegmentationsOfCube(LensSessionHandle sessionid,
String cubeName)
Get all segmentations that belong to a cube in the metastore
|
StringList |
getAllStorages(LensSessionHandle sessionid)
Get all storages in the metastore
|
JAXBElement<XCube> |
getCube(LensSessionHandle sessionid,
String cubeName)
Get the cube specified by name
|
String |
getDatabase(LensSessionHandle sessionid)
Get the current database
|
JAXBElement<XDimension> |
getDimension(LensSessionHandle sessionid,
String dimName)
Get the dimension specified by name
|
StringList |
getDimensionStorages(LensSessionHandle sessionid,
String dimension)
Get all storages of the dimension table in the metastore
|
JAXBElement<XDimensionTable> |
getDimensionTable(LensSessionHandle sessionid,
String dimTableName)
Get the dimension table specified by name
|
JAXBElement<XFactTable> |
getFactTable(LensSessionHandle sessionid,
String factName)
Get the fact table specified by name
|
JAXBElement<XFlattenedColumns> |
getFlattenedColumns(LensSessionHandle sessionid,
String tableName,
boolean addChains)
Get flattened list of columns reachable from a cube or a dimension
|
DateTime |
getLatestDateOfCube(LensSessionHandle sessionid,
String cubeName,
String timeDimension)
Get the latest available date upto which data is available for the base cubes, for the time dimension.
|
String |
getMessage()
API to know if metastore service is up and running
|
JAXBElement<XNativeTable> |
getNativeTable(LensSessionHandle sessionid,
String tableName)
Get the native table passed in name
|
StringList |
getPartitionTimelines(LensSessionHandle sessionid,
String factName,
String storage,
String updatePeriod,
String timeDimension)
Get the partition timelines.
|
JAXBElement<XSegmentation> |
getSegmentation(LensSessionHandle sessionid,
String segmentationName)
Get the segmentation specified by name
|
JAXBElement<XStorage> |
getStorage(LensSessionHandle sessionid,
String storageName)
Get the storage specified by name
|
JAXBElement<XStorageTableElement> |
getStorageOfDim(LensSessionHandle sessionid,
String dimTableName,
String storage)
Get the dim storage table
|
JAXBElement<XStorageTableElement> |
getStorageOfFact(LensSessionHandle sessionid,
String factName,
String storage)
Get the fact storage table
|
StringList |
getStoragesOfFact(LensSessionHandle sessionid,
String factName)
Get all storages of the fact table in the metastore
|
static CubeMetastoreService |
getSvc() |
APIResult |
setDatabase(LensSessionHandle sessionid,
String dbName)
Set the current db
|
APIResult |
updateCube(LensSessionHandle sessionid,
String cubeName,
XCube cube)
Update cube definition
|
APIResult |
updateCubeDimension(LensSessionHandle sessionid,
String dimTableName,
XDimensionTable dimensionTable)
Update dimension table definition
|
APIResult |
updateDimension(LensSessionHandle sessionid,
String dimName,
XDimension dimension)
Update dimension definition
|
APIResult |
updateFactTable(LensSessionHandle sessionid,
String factName,
XFactTable fact)
Update fact table definition
|
APIResult |
updatePartitionOfDimStorage(LensSessionHandle sessionid,
String dimTableName,
String storage,
XPartition partition)
Updates an existing partition for a storage of dimension
|
APIResult |
updatePartitionOfFactStorage(LensSessionHandle sessionid,
String factName,
String storage,
XPartition partition)
updates an existing partition for a storage of fact
|
APIResult |
updatePartitionsOfDimStorage(LensSessionHandle sessionid,
String dimTableName,
String storage,
XPartitionList partitions)
Add new partitions for a storage of dimension
|
APIResult |
updatePartitionsOfFactStorage(LensSessionHandle sessionid,
String factName,
String storage,
XPartitionList partitions)
Batch Update partitions for a storage of fact
|
APIResult |
updateSegmentation(LensSessionHandle sessionid,
String segmentationName,
XSegmentation seg)
Update segmentation
|
APIResult |
updateStorage(LensSessionHandle sessionid,
String storageName,
XStorage storage)
Update storage definition
|
public static final ObjectFactory X_CUBE_OBJECT_FACTORY
public static CubeMetastoreService getSvc()
public String getMessage()
public StringList getAllDatabases(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingjavax.ws.rs.WebApplicationExceptionLensExceptionpublic String getDatabase(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingLensExceptionpublic APIResult setDatabase(LensSessionHandle sessionid, String dbName) throws LensException
sessionid - The sessionid in which user is workingdbName - The db nameAPIResult with state APIResult.Status.SUCCEEDED, if set was successful. APIResult with state
APIResult.Status.FAILED, if set has failedLensExceptionpublic APIResult dropDatabase(LensSessionHandle sessionid, String dbName, boolean cascade) throws LensException
sessionid - The sessionid in which user is workingdbName - The db namecascade - if true, all the tables inside the db will also be dropped.APIResult with state APIResult.Status.SUCCEEDED, if delete was successful. APIResult with
state APIResult.Status.FAILED, if delete has failedLensExceptionpublic APIResult createDatabase(LensSessionHandle sessionid, boolean ignoreIfExisting, String dbName) throws LensException
sessionid - The sessionid in which user is workingignoreIfExisting - If true, create will be ignored if db already exists, otherwise it fails.dbName - The db nameAPIResult with state APIResult.Status.SUCCEEDED, if create was successful. APIResult with
state APIResult.Status.FAILED, if create has failedLensExceptionpublic StringList getAllNativeTables(LensSessionHandle sessionid, String dbOption, String dbName) throws LensException
sessionid - The sessionid in which user is workingdbOption - The options available are 'current' and 'all'. If option is current, gives all tables from current
db. If option is all, gives all tables from all databases. If dbname is passed, dbOption is
ignored. If no dbOption or dbname are passed, then default is to get tables from current db.dbName - The db name. If not empty, the tables in the db will be returnedjavax.ws.rs.WebApplicationExceptionLensExceptionpublic JAXBElement<XNativeTable> getNativeTable(LensSessionHandle sessionid, String tableName) throws LensException
sessionid - The sessionid in which user is workingtableName - The native table nameXNativeTablejavax.ws.rs.WebApplicationExceptionLensExceptionpublic StringList getAllCubes(LensSessionHandle sessionid, String cubeTypes) throws LensException
sessionid - The sessionid in which user is workingcubeTypes - The type of cubes. Accepted values are 'all' or 'base' or 'derived' or 'queryable'LensExceptionpublic APIResult deleteAllCubes(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingAPIResult.Status.SUCCEEDED in case of successful delete. APIResult with state APIResult.Status.FAILED in case of delete failure. APIResult with state APIResult.Status.PARTIAL in case of partial delete.LensExceptionpublic APIResult createNewCube(LensSessionHandle sessionid, XCube cube) throws LensException
sessionid - The sessionid in which user is workingcube - The XCube representation of the cube definitionAPIResult with state APIResult.Status.SUCCEEDED, if create was successful. APIResult with
state APIResult.Status.FAILED, if create has failedLensExceptionpublic APIResult updateCube(LensSessionHandle sessionid, String cubeName, XCube cube) throws LensException
sessionid - The sessionid in which user is workingcubeName - The cube namecube - The XCube representation of the updated cube definitionAPIResult with state APIResult.Status.SUCCEEDED, if update was successful. APIResult with
state APIResult.Status.FAILED, if update has failedLensExceptionpublic JAXBElement<XCube> getCube(LensSessionHandle sessionid, String cubeName) throws LensException
sessionid - The sessionid in which user is workingcubeName - The cube nameXCubeLensExceptionpublic APIResult dropCube(LensSessionHandle sessionid, String cubeName) throws LensException
sessionid - The sessionid in which user is workingcubeName - The cube nameAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic StringList getAllStorages(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingjavax.ws.rs.WebApplicationException - Wraps LensExceptionLensExceptionpublic APIResult createNewStorage(LensSessionHandle sessionid, XStorage storage) throws LensException
sessionid - The sessionid in which user is workingstorage - The XStorage representation of storageAPIResult with state APIResult.Status.SUCCEEDED, if create was successful. APIResult with
state APIResult.Status.FAILED, if create has failedLensExceptionpublic APIResult deleteAllStorages(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingAPIResult.Status.SUCCEEDED in case of successful delete. APIResult with state APIResult.Status.FAILED in case of delete failure. APIResult with state APIResult.Status.PARTIAL in case of partial delete.LensExceptionpublic APIResult updateStorage(LensSessionHandle sessionid, String storageName, XStorage storage) throws LensException
sessionid - The sessionid in which user is workingstorageName - The storage namestorage - The XStorage representation of the updated storage definitionAPIResult with state APIResult.Status.SUCCEEDED, if update was successful. APIResult with
state APIResult.Status.FAILED, if update has failedLensExceptionpublic JAXBElement<XStorage> getStorage(LensSessionHandle sessionid, String storageName) throws LensException
sessionid - The sessionid in which user is workingstorageName - The storage nameXStorageLensExceptionpublic APIResult dropStorage(LensSessionHandle sessionid, String storageName) throws LensException
sessionid - The sessionid in which user is workingstorageName - The storage nameAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic StringList getAllDimensionNames(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingjavax.ws.rs.WebApplicationException - wraps lensExceptionLensExceptionpublic APIResult createDimension(LensSessionHandle sessionid, XDimension dimension) throws LensException
sessionid - The sessionid in which user is workingdimension - The XDimension representation of dimensionAPIResult with state APIResult.Status.SUCCEEDED, if create was successful. APIResult with
state APIResult.Status.FAILED, if create has failedLensExceptionpublic APIResult deleteAllDimensions(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingAPIResult.Status.SUCCEEDED in case of successful delete. APIResult with state APIResult.Status.FAILED in case of delete failure. APIResult with state APIResult.Status.PARTIAL in case of partial delete.LensExceptionpublic APIResult updateDimension(LensSessionHandle sessionid, String dimName, XDimension dimension) throws LensException
sessionid - The sessionid in which user is workingdimName - The dimension namedimension - The XDimension representation of the updated dimension definitionAPIResult with state APIResult.Status.SUCCEEDED, if update was successful. APIResult with
state APIResult.Status.FAILED, if update has failedLensExceptionpublic JAXBElement<XDimension> getDimension(LensSessionHandle sessionid, String dimName) throws LensException
sessionid - The sessionid in which user is workingdimName - The dimension nameXDimensionLensExceptionpublic APIResult dropDimension(LensSessionHandle sessionid, String dimName) throws LensException
sessionid - The sessionid in which user is workingdimName - The dimension nameAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic StringList getAllDimensionTablesOfDimension(LensSessionHandle sessionid, String dimensionName) throws LensException
sessionid - The sessionid in which user is workingdimensionName - name of the dimensionXDimensionTable objectsLensExceptionpublic StringList getAllFactsOfCube(LensSessionHandle sessionid, String cubeName) throws LensException
sessionid - The sessionid in which user is workingcubeName - name of the base cube or derived cubeLensExceptionpublic StringList getAllSegmentationsOfCube(LensSessionHandle sessionid, String cubeName) throws LensException
sessionid - The sessionid in which user is workingcubeName - name of the base cube or derived cubeXSegmentation objectsLensExceptionpublic StringList getAllFacts(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingLensExceptionpublic StringList getAllSegmentations(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingLensExceptionpublic APIResult deleteAllFacts(LensSessionHandle sessionid, boolean cascade) throws LensException
sessionid - The sessionid in which user is workingcascade - if set to true, all the underlying tables will be dropped, if set to false, only the fact table
will be droppedAPIResult.Status.SUCCEEDED in case of successful delete. APIResult with state APIResult.Status.FAILED in case of delete failure. APIResult with state APIResult.Status.PARTIAL in case of partial delete.LensExceptionpublic APIResult deleteAllSegmentations(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingAPIResult.Status.SUCCEEDED in case of successful delete. APIResult with state APIResult.Status.FAILED in case of delete failure. APIResult with state APIResult.Status.PARTIAL in case of partial delete.LensExceptionpublic JAXBElement<XFactTable> getFactTable(LensSessionHandle sessionid, String factName) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table nameXFactTableLensExceptionpublic JAXBElement<XSegmentation> getSegmentation(LensSessionHandle sessionid, String segmentationName) throws LensException
sessionid - The sessionid in which user is workingsegmentationName - The segmentation nameXSegmentationLensExceptionpublic APIResult createFactTable(LensSessionHandle sessionid, XFactTable fact) throws LensException
sessionid - The sessionid in which user is workingfact - The XFactTable representation of the fact table definitionAPIResult with state APIResult.Status.SUCCEEDED, if create was successful. APIResult with
state APIResult.Status.FAILED, if create has failedLensExceptionpublic APIResult createSegmentation(LensSessionHandle sessionid, XSegmentation seg) throws LensException
sessionid - The sessionid in which user is workingseg - The XSegmentation representation of the segmentationAPIResult with state APIResult.Status.SUCCEEDED, if create was successful. APIResult with
state APIResult.Status.FAILED, if create has failedLensExceptionpublic APIResult updateFactTable(LensSessionHandle sessionid, String factName, XFactTable fact) throws LensException
sessionid - The sessionid in which user is workingfactName - name of the fact tablefact - The XFactTable representation of the updated fact table definitionAPIResult with state APIResult.Status.SUCCEEDED, if update was successful. APIResult with
state APIResult.Status.FAILED, if update has failedLensExceptionpublic APIResult updateSegmentation(LensSessionHandle sessionid, String segmentationName, XSegmentation seg) throws LensException
sessionid - The sessionid in which user is workingsegmentationName - name of segmentationseg - The XSegmentation representation of the updated fact table definitionAPIResult with state APIResult.Status.SUCCEEDED, if update was successful. APIResult with
state APIResult.Status.FAILED, if update has failedLensExceptionpublic APIResult dropFactTable(LensSessionHandle sessionid, String factName, boolean cascade) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table namecascade - If true, all the storage tables of the fact will also be droppedAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic APIResult dropSegmentation(LensSessionHandle sessionid, String segmentationName) throws LensException
sessionid - The sessionid in which user is workingsegmentationName - The segmentation nameAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic StringList getStoragesOfFact(LensSessionHandle sessionid, String factName) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table nameStringList consisting of all the storage namesLensExceptionpublic APIResult dropAllStoragesOfFact(LensSessionHandle sessionid, String factName) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table nameAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic APIResult addStorageToFact(LensSessionHandle sessionid, String factName, XStorageTableElement storageTable) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table namestorageTable - The storage table descriptionAPIResult with state APIResult.Status.SUCCEEDED, if add was successful. APIResult with state
APIResult.Status.FAILED, if add has failedLensExceptionpublic APIResult dropStorageFromFact(LensSessionHandle sessionid, String factName, String storage) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table namestorage - The storage nameAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic JAXBElement<XStorageTableElement> getStorageOfFact(LensSessionHandle sessionid, String factName, String storage) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table namestorage - The storage nameXStorageTableElementLensExceptionpublic JAXBElement<XPartitionList> getAllPartitionsOfFactStorageByFilter(LensSessionHandle sessionid, String factName, String storage, String filter) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table namestorage - The storage namefilter - The filter for partitions, string representation of the filter for ex: x < "xxx" and y >
"yyy"XPartitionList containing XPartition objectsLensExceptionpublic APIResult dropPartitionsOfFactStorageByFilter(LensSessionHandle sessionid, String factName, String storage, String filter) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table namestorage - The storage namefilter - The filter for partitions, string representation of the filter for ex: x < "xxx" and y >
"yyy"APIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic APIResult addPartitionToFactStorage(LensSessionHandle sessionid, String factName, String storage, XPartition partition) throws LensException
sessionid - The sessionid in which user is workingfactName - fact table namestorage - storage namepartition - XPartition representation of partitionAPIResult with state APIResult.Status.SUCCEEDED, if add was successful. APIResult with state
APIResult.Status.FAILED, if add has failedLensExceptionpublic APIResult updatePartitionOfFactStorage(LensSessionHandle sessionid, String factName, String storage, XPartition partition) throws LensException
sessionid - The sessionid in which user is workingfactName - fact table namestorage - storage namepartition - XPartition representation of partition.APIResult with state APIResult.Status.SUCCEEDED, if update was successful.
APIResult with state
APIResult.Status.FAILED, if update has failedLensExceptionpublic APIResult addPartitionsToFactStorage(LensSessionHandle sessionid, String factName, String storage, XPartitionList partitions) throws LensException
sessionid - The sessionid in which user is workingfactName - fact table namestorage - storage namepartitions - XPartitionList representation of partitionsAPIResult with state APIResult.Status.SUCCEEDED, if add was successful. APIResult with state
APIResult.Status.FAILED, if add has failedLensExceptionpublic APIResult updatePartitionsOfFactStorage(LensSessionHandle sessionid, String factName, String storage, XPartitionList partitions) throws LensException
sessionid - The sessionid in which user is workingfactName - fact table namestorage - storage namepartitions - XPartitionList representation of partitionsAPIResult with state APIResult.Status.SUCCEEDED, if update was successful.
APIResult with state
APIResult.Status.FAILED, if update has failedLensExceptionpublic APIResult dropPartitionOfFactStorageByValues(LensSessionHandle sessionid, String factName, String storage, String values) throws LensException
sessionid - The sessionid in which user is workingfactName - The fact table namestorage - The storage namevalues - Comma separated valuesAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic StringList getAllDims(LensSessionHandle sessionid) throws LensException
sessionid - The sessionid in which user is workingLensExceptionpublic APIResult createDimensionTable(LensSessionHandle sessionid, XDimensionTable dimensionTable) throws LensException
sessionid - The sessionid in which user is workingdimensionTable - The XDimensionTable representation of the dimension table definitionAPIResult with state APIResult.Status.SUCCEEDED, if create was successful. APIResult with
state APIResult.Status.FAILED, if create has failedLensExceptionpublic APIResult updateCubeDimension(LensSessionHandle sessionid, String dimTableName, XDimensionTable dimensionTable) throws LensException
sessionid - The sessionid in which user is workingdimensionTable - The XDimensionTable representation of the updated dim table definitionAPIResult with state APIResult.Status.SUCCEEDED, if update was successful. APIResult with
state APIResult.Status.FAILED, if update has failedLensExceptionpublic APIResult dropDimensionTable(LensSessionHandle sessionid, String dimension, boolean cascade) throws LensException
sessionid - The sessionid in which user is workingdimension - The dimension table namecascade - if true, all the storage tables of dimension table will also be droppedAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic JAXBElement<XDimensionTable> getDimensionTable(LensSessionHandle sessionid, String dimTableName) throws LensException
sessionid - The sessionid in which user is workingdimTableName - The cube nameXDimensionTableLensExceptionpublic StringList getDimensionStorages(LensSessionHandle sessionid, String dimension) throws LensException
sessionid - The sessionid in which user is workingdimension - The dimension table nameLensExceptionpublic APIResult createDimensionStorage(LensSessionHandle sessionid, String dimTableName, XStorageTableElement storageTbl) throws LensException
sessionid - The sessionid in which user is workingdimTableName - The dimension table namestorageTbl - The Storage table descriptionAPIResult with state APIResult.Status.SUCCEEDED, if add was successful. APIResult with state
APIResult.Status.FAILED, if add has failedLensExceptionpublic JAXBElement<XStorageTableElement> getStorageOfDim(LensSessionHandle sessionid, String dimTableName, String storage) throws LensException
sessionid - The sessionid in which user is workingdimTableName - The fact table namestorage - The storage nameXStorageTableElementLensExceptionpublic APIResult dropAllStoragesOfDim(LensSessionHandle sessionid, String dimTableName) throws LensException
sessionid - The sessionid in which user is workingdimTableName - The dimension table nameAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic APIResult dropStorageOfDim(LensSessionHandle sessionid, String dimTableName, String storage) throws LensException
sessionid - The sessionid in which user is workingdimTableName - The dimension table namestorage - The storage nameAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic JAXBElement<XPartitionList> getAllPartitionsOfDimStorage(LensSessionHandle sessionid, String dimension, String storage, String filter) throws LensException
sessionid - The sessionid in which user is workingdimension - The dimension table namestorage - The storage namefilter - The filter for partitions, string representation of the filter for ex: x < "xxx" and y >
"yyy"XPartitionList containing XPartition objectsLensExceptionpublic APIResult dropPartitionsOfDimStorageByFilter(LensSessionHandle sessionid, String dimTableName, String storage, String filter) throws LensException
sessionid - The sessionid in which user is workingdimTableName - The dimension table namestorage - The storage namefilter - The filter for partitions, string representation of the filter for ex: x < 'xxx' and y >
'yyy'APIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic APIResult dropPartitionsOfDimStorageByValue(LensSessionHandle sessionid, String dimTableName, String storage, String values) throws LensException
sessionid - The sessionid in which user is workingdimTableName - The dimension table namestorage - The storage namevalues - Comma separated valuesAPIResult with state APIResult.Status.SUCCEEDED, if drop was successful. APIResult with state
APIResult.Status.FAILED, if drop has failedLensExceptionpublic APIResult addPartitionToDimStorage(LensSessionHandle sessionid, String dimTableName, String storage, XPartition partition) throws LensException
sessionid - The sessionid in which user is workingdimTableName - dimension table namestorage - storage namepartition - XPartition representation of partitionAPIResult with state APIResult.Status.SUCCEEDED, if add was successful. APIResult with state
APIResult.Status.FAILED, if add has failedLensExceptionpublic APIResult updatePartitionOfDimStorage(LensSessionHandle sessionid, String dimTableName, String storage, XPartition partition) throws LensException
sessionid - The sessionid in which user is workingdimTableName - dimension table namestorage - storage namepartition - XPartition representation of partitionAPIResult with state APIResult.Status.SUCCEEDED, if update was successful.
APIResult with state
APIResult.Status.FAILED, if update has failedLensExceptionpublic APIResult addPartitionsToDimStorage(LensSessionHandle sessionid, String dimTableName, String storage, XPartitionList partitions) throws LensException
sessionid - The sessionid in which user is workingdimTableName - dimension table namestorage - storage namepartitions - XPartitionList representation of list of partitionsAPIResult with state APIResult.Status.SUCCEEDED, if add was successful. APIResult with state
APIResult.Status.FAILED, if add has failedLensExceptionpublic APIResult updatePartitionsOfDimStorage(LensSessionHandle sessionid, String dimTableName, String storage, XPartitionList partitions) throws LensException
sessionid - The sessionid in which user is workingdimTableName - dimension table namestorage - storage namepartitions - XPartitionList representation of list of partitionsAPIResult with state APIResult.Status.SUCCEEDED, if update was successful.
APIResult with state
APIResult.Status.FAILED, if update has failedLensExceptionpublic JAXBElement<XFlattenedColumns> getFlattenedColumns(LensSessionHandle sessionid, String tableName, boolean addChains) throws LensException
sessionid - session idtableName - name of the tableaddChains - whether columns accessed via chains should also be returnedLensExceptionpublic JAXBElement<XJoinChains> getAllJoinChains(LensSessionHandle sessionid, String tableName) throws LensException
sessionid - The sessionid in which user is workingtableName - name of the table. can be either cube or dimensionXJoinChains objectLensExceptionpublic DateTime getLatestDateOfCube(LensSessionHandle sessionid, String cubeName, String timeDimension) throws LensException, org.apache.hadoop.hive.ql.metadata.HiveException
sessionid - The sessionid in which user is workingtimeDimension - time dimension namecubeName - name of the base cubeLensExceptionorg.apache.hadoop.hive.ql.metadata.HiveExceptionpublic StringList getPartitionTimelines(LensSessionHandle sessionid, String factName, String storage, String updatePeriod, String timeDimension) throws LensException, org.apache.hadoop.hive.ql.metadata.HiveException
sessionid - The sessionid in which user is workingfactName - name of the factstorage - storage NameupdatePeriod - update periodtimeDimension - time dimension nameLensExceptionorg.apache.hadoop.hive.ql.metadata.HiveExceptionCopyright © 2014–2016 Apache Software Foundation. All rights reserved.