@Path(value="metastore") @Produces(value={"application/xml","application/json"}) 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,
XFact 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<XFact> |
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,
XFact 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()
@GET @Produces(value="text/plain") public String getMessage()
@GET @Path(value="databases") public StringList getAllDatabases(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingjavax.ws.rs.WebApplicationException
LensException
@GET @Path(value="databases/current") public String getDatabase(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingLensException
@PUT @Path(value="databases/current") @Consumes(value={"application/xml","application/json"}) public APIResult setDatabase(@QueryParam(value="sessionid") 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 failedLensException
@DELETE @Path(value="databases/{dbName}") public APIResult dropDatabase(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dbName") String dbName, @QueryParam(value="cascade") 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 failedLensException
@POST @Path(value="databases") public APIResult createDatabase(@QueryParam(value="sessionid") LensSessionHandle sessionid, @QueryParam(value="ignoreIfExisting") @DefaultValue(value="true") 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 failedLensException
@GET @Path(value="nativetables") public StringList getAllNativeTables(@QueryParam(value="sessionid") LensSessionHandle sessionid, @QueryParam(value="dbOption") String dbOption, @QueryParam(value="dbName") 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.WebApplicationException
LensException
@GET @Path(value="nativetables/{tableName}") public JAXBElement<XNativeTable> getNativeTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="tableName") String tableName) throws LensException
sessionid
- The sessionid in which user is workingtableName
- The native table nameXNativeTable
javax.ws.rs.WebApplicationException
LensException
@GET @Path(value="cubes") public StringList getAllCubes(@QueryParam(value="sessionid") LensSessionHandle sessionid, @QueryParam(value="type") @DefaultValue(value="all") 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'LensException
@DELETE @Path(value="cubes") public APIResult deleteAllCubes(@QueryParam(value="sessionid") 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.LensException
@POST @Path(value="cubes") public APIResult createNewCube(@QueryParam(value="sessionid") 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 failedLensException
@PUT @Path(value="/cubes/{cubeName}") public APIResult updateCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") 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 failedLensException
@GET @Path(value="/cubes/{cubeName}") public JAXBElement<XCube> getCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") String cubeName) throws LensException
sessionid
- The sessionid in which user is workingcubeName
- The cube nameXCube
LensException
@DELETE @Path(value="/cubes/{cubeName}") public APIResult dropCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") 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 failedLensException
@GET @Path(value="storages") public StringList getAllStorages(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingjavax.ws.rs.WebApplicationException
- Wraps LensExceptionLensException
@POST @Path(value="storages") public APIResult createNewStorage(@QueryParam(value="sessionid") 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 failedLensException
@DELETE @Path(value="storages") public APIResult deleteAllStorages(@QueryParam(value="sessionid") 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.LensException
@PUT @Path(value="/storages/{storageName}") public APIResult updateStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="storageName") 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 failedLensException
@GET @Path(value="/storages/{storage}") public JAXBElement<XStorage> getStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="storage") String storageName) throws LensException
sessionid
- The sessionid in which user is workingstorageName
- The storage nameXStorage
LensException
@DELETE @Path(value="/storages/{storage}") public APIResult dropStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="storage") 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 failedLensException
@GET @Path(value="dimensions") public StringList getAllDimensionNames(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingjavax.ws.rs.WebApplicationException
- wraps lensExceptionLensException
@POST @Path(value="dimensions") public APIResult createDimension(@QueryParam(value="sessionid") 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 failedLensException
@DELETE @Path(value="dimensions") public APIResult deleteAllDimensions(@QueryParam(value="sessionid") 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.LensException
@PUT @Path(value="/dimensions/{dimName}") public APIResult updateDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimName") 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 failedLensException
@GET @Path(value="/dimensions/{dimName}") public JAXBElement<XDimension> getDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimName") String dimName) throws LensException
sessionid
- The sessionid in which user is workingdimName
- The dimension nameXDimension
LensException
@DELETE @Path(value="/dimensions/{dimName}") public APIResult dropDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimName") 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 failedLensException
@GET @Path(value="/dimensions/{dimName}/dimtables") public StringList getAllDimensionTablesOfDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimName") String dimensionName) throws LensException
sessionid
- The sessionid in which user is workingdimensionName
- name of the dimensionXDimensionTable
objectsLensException
@GET @Path(value="/cubes/{cubeName}/facts") public StringList getAllFactsOfCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") String cubeName) throws LensException
sessionid
- The sessionid in which user is workingcubeName
- name of the base cube or derived cubeLensException
@GET @Path(value="/cubes/{cubeName}/segmentations") public StringList getAllSegmentationsOfCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") String cubeName) throws LensException
sessionid
- The sessionid in which user is workingcubeName
- name of the base cube or derived cubeXSegmentation
objectsLensException
@GET @Path(value="/facts") public StringList getAllFacts(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingLensException
@GET @Path(value="/segmentations") public StringList getAllSegmentations(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingLensException
@DELETE @Path(value="facts") public APIResult deleteAllFacts(@QueryParam(value="sessionid") LensSessionHandle sessionid, @DefaultValue(value="false") @QueryParam(value="cascade") 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.LensException
@DELETE @Path(value="segmentations") public APIResult deleteAllSegmentations(@QueryParam(value="sessionid") 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.LensException
@GET @Path(value="/facts/{factName}") public JAXBElement<XFact> getFactTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName) throws LensException
sessionid
- The sessionid in which user is workingfactName
- The fact table nameXFact
LensException
@GET @Path(value="/segmentations/{segmentationName}") public JAXBElement<XSegmentation> getSegmentation(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="segmentationName") String segmentationName) throws LensException
sessionid
- The sessionid in which user is workingsegmentationName
- The segmentation nameXSegmentation
LensException
@POST @Path(value="/facts") public APIResult createFactTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, XFact fact) throws LensException
sessionid
- The sessionid in which user is workingfact
- The XFact
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
@POST @Path(value="/segmentations") public APIResult createSegmentation(@QueryParam(value="sessionid") 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 failedLensException
@PUT @Path(value="/facts/{factName}") public APIResult updateFactTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, XFact fact) throws LensException
sessionid
- The sessionid in which user is workingfactName
- name of the fact tablefact
- The XFact
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
@PUT @Path(value="/segmentations/{segmentationName}") public APIResult updateSegmentation(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="segmentationName") 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 failedLensException
@DELETE @Path(value="/facts/{factName}") public APIResult dropFactTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @DefaultValue(value="false") @QueryParam(value="cascade") 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
@DELETE @Path(value="/segmentations/{segmentationName}") public APIResult dropSegmentation(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="segmentationName") 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 failedLensException
@GET @Path(value="/facts/{factName}/storages") public StringList getStoragesOfFact(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName) throws LensException
sessionid
- The sessionid in which user is workingfactName
- The fact table nameStringList
consisting of all the storage namesLensException
@DELETE @Path(value="/facts/{factName}/storages") public APIResult dropAllStoragesOfFact(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") 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 failedLensException
@POST @Path(value="/facts/{factName}/storages") public APIResult addStorageToFact(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") 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 failedLensException
@DELETE @Path(value="/facts/{factName}/storages/{storage}") public APIResult dropStorageFromFact(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") 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 failedLensException
@GET @Path(value="/facts/{factName}/storages/{storage}") public JAXBElement<XStorageTableElement> getStorageOfFact(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") String storage) throws LensException
sessionid
- The sessionid in which user is workingfactName
- The fact table namestorage
- The storage nameXStorageTableElement
LensException
@GET @Path(value="/facts/{factName}/storages/{storage}/partitions") public JAXBElement<XPartitionList> getAllPartitionsOfFactStorageByFilter(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") String storage, @QueryParam(value="filter") 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
@DELETE @Path(value="/facts/{factName}/storages/{storage}/partitions") public APIResult dropPartitionsOfFactStorageByFilter(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") String storage, @QueryParam(value="filter") 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 failedLensException
@POST @Path(value="/facts/{factName}/storages/{storage}/partition") public APIResult addPartitionToFactStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") 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 failedLensException
@PUT @Path(value="/facts/{factName}/storages/{storage}/partition") public APIResult updatePartitionOfFactStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") 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 failedLensException
@POST @Path(value="/facts/{factName}/storages/{storage}/partitions") public APIResult addPartitionsToFactStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") 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 failedLensException
@PUT @Path(value="/facts/{factName}/storages/{storage}/partitions") public APIResult updatePartitionsOfFactStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") 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 failedLensException
@DELETE @Path(value="/facts/{factName}/storages/{storage}/partition") public APIResult dropPartitionOfFactStorageByValues(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @PathParam(value="storage") String storage, @QueryParam(value="values") 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 failedLensException
@GET @Path(value="/dimtables") public StringList getAllDims(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is workingLensException
@POST @Path(value="/dimtables") public APIResult createDimensionTable(@QueryParam(value="sessionid") 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 failedLensException
@PUT @Path(value="/dimtables/{dimTableName}") public APIResult updateCubeDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") 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 failedLensException
@DELETE @Path(value="/dimtables/{dimTableName}") public APIResult dropDimensionTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimension, @QueryParam(value="cascade") 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 failedLensException
@GET @Path(value="/dimtables/{dimTableName}") public JAXBElement<XDimensionTable> getDimensionTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName) throws LensException
sessionid
- The sessionid in which user is workingdimTableName
- The cube nameXDimensionTable
LensException
@GET @Path(value="/dimtables/{dimTableName}/storages") public StringList getDimensionStorages(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimension) throws LensException
sessionid
- The sessionid in which user is workingdimension
- The dimension table nameLensException
@POST @Path(value="/dimtables/{dimTableName}/storages") public APIResult createDimensionStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") 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 failedLensException
@GET @Path(value="/dimtables/{dimTableName}/storages/{storage}") public JAXBElement<XStorageTableElement> getStorageOfDim(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, @PathParam(value="storage") String storage) throws LensException
sessionid
- The sessionid in which user is workingdimTableName
- The fact table namestorage
- The storage nameXStorageTableElement
LensException
@DELETE @Path(value="/dimtables/{dimTableName}/storages") public APIResult dropAllStoragesOfDim(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") 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 failedLensException
@DELETE @Path(value="/dimtables/{dimTableName}/storages/{storage}") public APIResult dropStorageOfDim(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, @PathParam(value="storage") 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 failedLensException
@GET @Path(value="/dimtables/{dimTableName}/storages/{storage}/partitions") public JAXBElement<XPartitionList> getAllPartitionsOfDimStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimension, @PathParam(value="storage") String storage, @QueryParam(value="filter") 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
@DELETE @Path(value="/dimtables/{dimTableName}/storages/{storage}/partitions") public APIResult dropPartitionsOfDimStorageByFilter(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, @PathParam(value="storage") String storage, @QueryParam(value="filter") 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 failedLensException
@DELETE @Path(value="/dimtables/{dimTableName}/storages/{storage}/partition") public APIResult dropPartitionsOfDimStorageByValue(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, @PathParam(value="storage") String storage, @QueryParam(value="values") 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 failedLensException
@POST @Path(value="/dimtables/{dimTableName}/storages/{storage}/partition") public APIResult addPartitionToDimStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, @PathParam(value="storage") 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 failedLensException
@PUT @Path(value="/dimtables/{dimTableName}/storages/{storage}/partition") public APIResult updatePartitionOfDimStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, @PathParam(value="storage") 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 failedLensException
@POST @Path(value="/dimtables/{dimTableName}/storages/{storage}/partitions") public APIResult addPartitionsToDimStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, @PathParam(value="storage") 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 failedLensException
@PUT @Path(value="/dimtables/{dimTableName}/storages/{storage}/partitions") public APIResult updatePartitionsOfDimStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, @PathParam(value="storage") 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 failedLensException
@GET @Path(value="flattened/{tableName}") public JAXBElement<XFlattenedColumns> getFlattenedColumns(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="tableName") String tableName, @QueryParam(value="add_chains") @DefaultValue(value="true") boolean addChains) throws LensException
sessionid
- session idtableName
- name of the tableaddChains
- whether columns accessed via chains should also be returnedLensException
@GET @Path(value="/chains/{tableName}") public JAXBElement<XJoinChains> getAllJoinChains(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="tableName") String tableName) throws LensException
sessionid
- The sessionid in which user is workingtableName
- name of the table. can be either cube or dimensionXJoinChains
objectLensException
@GET @Path(value="/cubes/{cubeName}/latestdate") public DateTime getLatestDateOfCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") String cubeName, @QueryParam(value="timeDimension") 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
@GET @Path(value="/facts/{factName}/timelines") public StringList getPartitionTimelines(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, @QueryParam(value="storage") String storage, @QueryParam(value="updatePeriod") String updatePeriod, @QueryParam(value="timeDimension") 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–2018 Apache Software Foundation. All rights reserved.