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 |
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 |
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 |
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 |
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<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 |
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)
sessionid
- The sessionid in which user is workingjavax.ws.rs.WebApplicationException
public String getDatabase(LensSessionHandle sessionid)
sessionid
- The sessionid in which user is workingpublic APIResult setDatabase(LensSessionHandle sessionid, String dbName)
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 failedpublic APIResult dropDatabase(LensSessionHandle sessionid, String dbName, boolean cascade)
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 failedpublic APIResult createDatabase(LensSessionHandle sessionid, boolean ignoreIfExisting, String dbName)
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 failedpublic StringList getAllNativeTables(LensSessionHandle sessionid, String dbOption, String dbName)
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.WebApplicationException
public JAXBElement<XNativeTable> getNativeTable(LensSessionHandle sessionid, String tableName)
sessionid
- The sessionid in which user is workingtableName
- The native table nameXNativeTable
javax.ws.rs.WebApplicationException
public StringList getAllCubes(LensSessionHandle sessionid, String cubeTypes)
sessionid
- The sessionid in which user is workingcubeTypes
- The type of cubes. Accepted values are 'all' or 'base' or 'derived' or 'queryable'public APIResult deleteAllCubes(LensSessionHandle sessionid)
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.public APIResult createNewCube(LensSessionHandle sessionid, XCube cube)
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 failedpublic APIResult updateCube(LensSessionHandle sessionid, String cubeName, XCube cube)
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 failedpublic JAXBElement<XCube> getCube(LensSessionHandle sessionid, String cubeName)
sessionid
- The sessionid in which user is workingcubeName
- The cube nameXCube
public APIResult dropCube(LensSessionHandle sessionid, String cubeName)
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 failedpublic StringList getAllStorages(LensSessionHandle sessionid)
sessionid
- The sessionid in which user is workingjavax.ws.rs.WebApplicationException
- Wraps LensExceptionpublic APIResult createNewStorage(LensSessionHandle sessionid, XStorage storage)
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 failedpublic APIResult deleteAllStorages(LensSessionHandle sessionid)
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.public APIResult updateStorage(LensSessionHandle sessionid, String storageName, XStorage storage)
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 failedpublic JAXBElement<XStorage> getStorage(LensSessionHandle sessionid, String storageName) throws Exception
public APIResult dropStorage(LensSessionHandle sessionid, String storageName)
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 failedpublic StringList getAllDimensionNames(LensSessionHandle sessionid)
sessionid
- The sessionid in which user is workingjavax.ws.rs.WebApplicationException
- wraps lensExceptionpublic APIResult createDimension(LensSessionHandle sessionid, XDimension dimension)
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 failedpublic APIResult deleteAllDimensions(LensSessionHandle sessionid)
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.public APIResult updateDimension(LensSessionHandle sessionid, String dimName, XDimension dimension)
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 failedpublic JAXBElement<XDimension> getDimension(LensSessionHandle sessionid, String dimName) throws Exception
sessionid
- The sessionid in which user is workingdimName
- The dimension nameXDimension
Exception
public APIResult dropDimension(LensSessionHandle sessionid, String dimName)
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 failedpublic StringList getAllDimensionTablesOfDimension(LensSessionHandle sessionid, String dimensionName) throws LensException
sessionid
- The sessionid in which user is workingdimensionName
- name of the dimensionXDimensionTable
objectsLensException
public StringList getAllFactsOfCube(LensSessionHandle sessionid, String cubeName) throws LensException
sessionid
- The sessionid in which user is workingcubeName
- name of the base cube or derived cubeXFactTable
objectsLensException
public StringList getAllFacts(LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingLensException
public APIResult deleteAllFacts(LensSessionHandle sessionid, boolean cascade)
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.public JAXBElement<XFactTable> getFactTable(LensSessionHandle sessionid, String factName) throws LensException
sessionid
- The sessionid in which user is workingfactName
- The fact table nameXFactTable
LensException
public 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 failedLensException
public 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 failedLensException
public 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 failedLensException
public 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 namesLensException
public APIResult dropAllStoragesOfFact(LensSessionHandle sessionid, String factName)
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 failedpublic APIResult addStorageToFact(LensSessionHandle sessionid, String factName, XStorageTableElement storageTable)
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 failedpublic APIResult dropStorageFromFact(LensSessionHandle sessionid, String factName, String storage)
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 failedpublic 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 nameXStorageTableElement
LensException
public 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
objectsLensException
public APIResult dropPartitionsOfFactStorageByFilter(LensSessionHandle sessionid, String factName, String storage, String filter)
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 failedpublic APIResult addPartitionToFactStorage(LensSessionHandle sessionid, String factName, String storage, XPartition partition)
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 failedpublic APIResult updatePartitionOfFactStorage(LensSessionHandle sessionid, String factName, String storage, XPartition partition)
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 failedpublic APIResult addPartitionsToFactStorage(LensSessionHandle sessionid, String factName, String storage, XPartitionList partitions)
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 failedpublic APIResult updatePartitionsOfFactStorage(LensSessionHandle sessionid, String factName, String storage, XPartitionList partitions)
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 failedpublic APIResult dropPartitionOfFactStorageByValues(LensSessionHandle sessionid, String factName, String storage, String values)
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 failedpublic StringList getAllDims(LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingLensException
public APIResult createDimensionTable(LensSessionHandle sessionid, XDimensionTable dimensionTable)
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 failedpublic APIResult updateCubeDimension(LensSessionHandle sessionid, String dimTableName, XDimensionTable dimensionTable)
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 failedpublic APIResult dropDimensionTable(LensSessionHandle sessionid, String dimension, boolean cascade)
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 failedpublic JAXBElement<XDimensionTable> getDimensionTable(LensSessionHandle sessionid, String dimTableName) throws LensException
sessionid
- The sessionid in which user is workingdimTableName
- The cube nameXDimensionTable
LensException
public StringList getDimensionStorages(LensSessionHandle sessionid, String dimension) throws LensException
sessionid
- The sessionid in which user is workingdimension
- The dimension table nameLensException
public APIResult createDimensionStorage(LensSessionHandle sessionid, String dimTableName, XStorageTableElement storageTbl)
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 failedpublic 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 nameXStorageTableElement
LensException
public APIResult dropAllStoragesOfDim(LensSessionHandle sessionid, String dimTableName)
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 failedpublic APIResult dropStorageOfDim(LensSessionHandle sessionid, String dimTableName, String storage)
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 failedpublic 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
objectsLensException
public APIResult dropPartitionsOfDimStorageByFilter(LensSessionHandle sessionid, String dimTableName, String storage, String filter)
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 failedpublic APIResult dropPartitionsOfDimStorageByValue(LensSessionHandle sessionid, String dimTableName, String storage, String values)
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 failedpublic APIResult addPartitionToDimStorage(LensSessionHandle sessionid, String dimTableName, String storage, XPartition partition)
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 failedpublic APIResult updatePartitionOfDimStorage(LensSessionHandle sessionid, String dimTableName, String storage, XPartition partition)
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 failedpublic APIResult addPartitionsToDimStorage(LensSessionHandle sessionid, String dimTableName, String storage, XPartitionList partitions)
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 failedpublic APIResult updatePartitionsOfDimStorage(LensSessionHandle sessionid, String dimTableName, String storage, XPartitionList partitions)
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 failedpublic JAXBElement<XFlattenedColumns> getFlattenedColumns(LensSessionHandle sessionid, String tableName, boolean addChains)
sessionid
- session idtableName
- name of the tableaddChains
- whether columns accessed via chains should also be returnedpublic 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
objectLensException
public 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 cubeLensException
org.apache.hadoop.hive.ql.metadata.HiveException
public 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 nameLensException
org.apache.hadoop.hive.ql.metadata.HiveException
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.