|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.metastore.MetastoreResource
@Path(value="metastore") @Produces(value={"application/json","application/xml"}) public class MetastoreResource
metastore resource api
This provides api for all things metastore.
Field Summary | |
---|---|
static org.apache.log4j.Logger |
LOG
|
static APIResult |
SUCCESS
|
static ObjectFactory |
X_CUBE_OBJECT_FACTORY
|
Constructor Summary | |
---|---|
MetastoreResource()
|
Method Summary | |
---|---|
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 |
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 |
List<XFactTable> |
getAllFactsOfCube(LensSessionHandle sessionid,
String cubeName)
Get all facts that belong to a cube 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)
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 |
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 |
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 |
updateStorage(LensSessionHandle sessionid,
String storageName,
XStorage storage)
Update storage definition |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger LOG
public static final APIResult SUCCESS
public static final ObjectFactory X_CUBE_OBJECT_FACTORY
Constructor Detail |
---|
public MetastoreResource()
Method Detail |
---|
public CubeMetastoreService getSvc()
@GET @Produces(value="text/plain") public String getMessage()
@GET @Path(value="databases") public StringList getAllDatabases(@QueryParam(value="sessionid") LensSessionHandle sessionid)
sessionid
- The sessionid in which user is working
LensException
@GET @Path(value="databases/current") public String getDatabase(@QueryParam(value="sessionid") LensSessionHandle sessionid)
sessionid
- The sessionid in which user is working
@PUT @Path(value="databases/current") @Consumes(value={"application/xml","application/json"}) public APIResult setDatabase(@QueryParam(value="sessionid") LensSessionHandle sessionid, String dbName)
sessionid
- The sessionid in which user is workingdbName
- The db name
APIResult
with state APIResult.Status.SUCCEEDED
, if set was successful. APIResult
with state
APIResult.Status.FAILED
, if set has failed@DELETE @Path(value="databases/{dbName}") public APIResult dropDatabase(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dbName") String dbName, @QueryParam(value="cascade") 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 failed@POST @Path(value="databases") public APIResult createDatabase(@QueryParam(value="sessionid") LensSessionHandle sessionid, @QueryParam(value="ignoreIfExisting")@DefaultValue(value="true") 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 name
APIResult
with state APIResult.Status.SUCCEEDED
, if create was successful. APIResult
with
state APIResult.Status.FAILED
, if create has failed@GET @Path(value="nativetables") public StringList getAllNativeTables(@QueryParam(value="sessionid") LensSessionHandle sessionid, @QueryParam(value="dbOption") String dbOption, @QueryParam(value="dbName") 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 returned
LensException
@GET @Path(value="nativetables/{tableName}") public JAXBElement<XNativeTable> getNativeTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="tableName") String tableName)
sessionid
- The sessionid in which user is workingtableName
- The native table name
XNativeTable
LensException
@GET @Path(value="cubes") public StringList getAllCubes(@QueryParam(value="sessionid") LensSessionHandle sessionid, @QueryParam(value="type")@DefaultValue(value="all") String cubeTypes)
sessionid
- The sessionid in which user is workingcubeTypes
- The type of cubes. Accepted values are 'all' or 'base' or 'derived' or 'queryable'
@DELETE @Path(value="cubes") public APIResult deleteAllCubes(@QueryParam(value="sessionid") LensSessionHandle sessionid)
sessionid
- The sessionid in which user is working
APIResult.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.@POST @Path(value="cubes") public APIResult createNewCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, XCube cube)
sessionid
- The sessionid in which user is workingcube
- The XCube
representation of the cube definition
APIResult
with state APIResult.Status.SUCCEEDED
, if create was successful. APIResult
with
state APIResult.Status.FAILED
, if create has failed@PUT @Path(value="/cubes/{cubeName}") public APIResult updateCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") String cubeName, XCube cube)
sessionid
- The sessionid in which user is workingcubeName
- The cube namecube
- The XCube
representation of the updated cube definition
APIResult
with state APIResult.Status.SUCCEEDED
, if update was successful. APIResult
with
state APIResult.Status.FAILED
, if udpate has failed@GET @Path(value="/cubes/{cubeName}") public JAXBElement<XCube> getCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") String cubeName)
sessionid
- The sessionid in which user is workingcubeName
- The cube name
XCube
@DELETE @Path(value="/cubes/{cubeName}") public APIResult dropCube(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="cubeName") String cubeName)
sessionid
- The sessionid in which user is workingcubeName
- The cube name
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@GET @Path(value="storages") public StringList getAllStorages(@QueryParam(value="sessionid") LensSessionHandle sessionid)
sessionid
- The sessionid in which user is working
LensException
@POST @Path(value="storages") public APIResult createNewStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, XStorage storage)
sessionid
- The sessionid in which user is workingstorage
- The XStorage representation of storage
APIResult
with state APIResult.Status.SUCCEEDED
, if create was successful. APIResult
with
state APIResult.Status.FAILED
, if create has failed@DELETE @Path(value="storages") public APIResult deleteAllStorages(@QueryParam(value="sessionid") LensSessionHandle sessionid)
sessionid
- The sessionid in which user is working
APIResult.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.@PUT @Path(value="/storages/{storageName}") public APIResult updateStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="storageName") String storageName, XStorage storage)
sessionid
- The sessionid in which user is workingstorageName
- The storage namestorage
- The XStorage
representation of the updated storage definition
APIResult
with state APIResult.Status.SUCCEEDED
, if update was successful. APIResult
with
state APIResult.Status.FAILED
, if update has failed@GET @Path(value="/storages/{storage}") public JAXBElement<XStorage> getStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="storage") String storageName) throws Exception
sessionid
- The sessionid in which user is workingstorageName
- The storage name
XStorage
Exception
@DELETE @Path(value="/storages/{storage}") public APIResult dropStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="storage") String storageName)
sessionid
- The sessionid in which user is workingstorageName
- The storage name
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@GET @Path(value="dimensions") public StringList getAllDimensionNames(@QueryParam(value="sessionid") LensSessionHandle sessionid)
sessionid
- The sessionid in which user is working
LensException
@POST @Path(value="dimensions") public APIResult createDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, XDimension dimension)
sessionid
- The sessionid in which user is workingdimension
- The XDimension representation of dimension
APIResult
with state APIResult.Status.SUCCEEDED
, if create was successful. APIResult
with
state APIResult.Status.FAILED
, if create has failed@DELETE @Path(value="dimensions") public APIResult deleteAllDimensions(@QueryParam(value="sessionid") LensSessionHandle sessionid)
sessionid
- The sessionid in which user is working
APIResult.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.@PUT @Path(value="/dimensions/{dimName}") public APIResult updateDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimName") String dimName, XDimension dimension)
sessionid
- The sessionid in which user is workingdimName
- The dimension namedimension
- The XDimension
representation of the updated dimension definition
APIResult
with state APIResult.Status.SUCCEEDED
, if update was successful. APIResult
with
state APIResult.Status.FAILED
, if update has failed@GET @Path(value="/dimensions/{dimName}") public JAXBElement<XDimension> getDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimName") String dimName) throws Exception
sessionid
- The sessionid in which user is workingdimName
- The dimension name
XDimension
Exception
@DELETE @Path(value="/dimensions/{dimName}") public APIResult dropDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimName") String dimName)
sessionid
- The sessionid in which user is workingdimName
- The dimension name
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@GET @Path(value="/cubes/{cubeName}/facts") public List<XFactTable> 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 cube
XFactTable
objects
LensException
@GET @Path(value="/facts") public StringList getAllFacts(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is working
LensException
@DELETE @Path(value="facts") public APIResult deleteAllFacts(@QueryParam(value="sessionid") LensSessionHandle sessionid, @DefaultValue(value="false")@QueryParam(value="cascade") 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 dropped
APIResult.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.@GET @Path(value="/facts/{factName}") public JAXBElement<XFactTable> getFactTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName) throws LensException
sessionid
- The sessionid in which user is workingfactName
- The fact table name
XFactTable
LensException
@Consumes(value="multipart/form-data") @POST @Path(value="/facts") public APIResult createFactTable(LensSessionHandle sessionid, XFactTable fact) throws LensException
sessionid
- The sessionid in which user is workingfact
- The XFactTable
representation of the fact table definition
APIResult
with state APIResult.Status.SUCCEEDED
, if create was successful. APIResult
with
state APIResult.Status.FAILED
, if create has failed
LensException
@PUT @Path(value="/facts/{factName}") public APIResult updateFactTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") 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 definition
APIResult
with state APIResult.Status.SUCCEEDED
, if update was successful. APIResult
with
state APIResult.Status.FAILED
, if udpate has failed
LensException
@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 dropped
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed
LensException
@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 name
StringList
consisting of all the storage names
LensException
@DELETE @Path(value="/facts/{factName}/storages") public APIResult dropAllStoragesOfFact(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName)
sessionid
- The sessionid in which user is workingfactName
- The fact table name
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@POST @Path(value="/facts/{factName}/storages") public APIResult addStorageToFact(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="factName") String factName, XStorageTableElement storageTable)
sessionid
- The sessionid in which user is workingfactName
- The fact table namestorageTable
- The storage table description
APIResult
with state APIResult.Status.SUCCEEDED
, if add was successful. APIResult
with state
APIResult.Status.FAILED
, if add has failed@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)
sessionid
- The sessionid in which user is workingfactName
- The fact table namestorage
- The storage name
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@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 name
XStorageTableElement
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
objects
LensException
@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)
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 failed@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)
sessionid
- The sessionid in which user is workingfactName
- fact table namestorage
- storage namepartition
- XPartition
representation of partition
APIResult
with state APIResult.Status.SUCCEEDED
, if add was successful. APIResult
with state
APIResult.Status.FAILED
, if add has failed@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)
sessionid
- The sessionid in which user is workingfactName
- fact table namestorage
- storage namepartitions
- XPartitionList
representation of partitions
APIResult
with state APIResult.Status.SUCCEEDED
, if add was successful. APIResult
with state
APIResult.Status.FAILED
, if add has failed@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)
sessionid
- The sessionid in which user is workingfactName
- The fact table namestorage
- The storage namevalues
- Comma separated values
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@GET @Path(value="/dimtables") public StringList getAllDims(@QueryParam(value="sessionid") LensSessionHandle sessionid) throws LensException
sessionid
- The sessionid in which user is working
LensException
@POST @Path(value="/dimtables") public APIResult createDimensionTable(LensSessionHandle sessionid, XDimensionTable dimensionTable)
sessionid
- The sessionid in which user is workingdimensionTable
- The XDimensionTable
representation of the dimension table definition
APIResult
with state APIResult.Status.SUCCEEDED
, if create was successful. APIResult
with
state APIResult.Status.FAILED
, if create has failed@PUT @Path(value="/dimtables/{dimTableName}") public APIResult updateCubeDimension(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, XDimensionTable dimensionTable)
sessionid
- The sessionid in which user is workingdimensionTable
- The XDimensionTable
representation of the updated dim table definition
APIResult
with state APIResult.Status.SUCCEEDED
, if update was successful. APIResult
with
state APIResult.Status.FAILED
, if udpate has failed@DELETE @Path(value="/dimtables/{dimTableName}") public APIResult dropDimensionTable(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimension, @QueryParam(value="cascade") 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 dropped
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@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 name
XDimensionTable
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 name
LensException
@POST @Path(value="/dimtables/{dimTableName}/storages") public APIResult createDimensionStorage(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName, XStorageTableElement storageTbl)
sessionid
- The sessionid in which user is workingdimTableName
- The dimension table namestorageTbl
- The Storage table description
APIResult
with state APIResult.Status.SUCCEEDED
, if add was successful. APIResult
with state
APIResult.Status.FAILED
, if add has failed@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 name
XStorageTableElement
LensException
@DELETE @Path(value="/dimtables/{dimTableName}/storages") public APIResult dropAllStoragesOfDim(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="dimTableName") String dimTableName)
sessionid
- The sessionid in which user is workingdimTableName
- The dimension table name
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@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)
sessionid
- The sessionid in which user is workingdimTableName
- The dimension table namestorage
- The storage name
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@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
objects
LensException
@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)
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 failed@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)
sessionid
- The sessionid in which user is workingdimTableName
- The dimension table namestorage
- The storage namevalues
- Comma separated values
APIResult
with state APIResult.Status.SUCCEEDED
, if drop was successful. APIResult
with state
APIResult.Status.FAILED
, if drop has failed@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)
sessionid
- The sessionid in which user is workingdimTableName
- dimension table namestorage
- storage namepartition
- XPartition
representation of partition
APIResult
with state APIResult.Status.SUCCEEDED
, if add was successful. APIResult
with state
APIResult.Status.FAILED
, if add has failed@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)
sessionid
- The sessionid in which user is workingdimTableName
- dimension table namestorage
- storage namepartitions
- XPartitionList
representation of list of partitions
APIResult
with state APIResult.Status.SUCCEEDED
, if add was successful. APIResult
with state
APIResult.Status.FAILED
, if add has failed@GET @Path(value="flattened/{tableName}") public JAXBElement<XFlattenedColumns> getFlattenedColumns(@QueryParam(value="sessionid") LensSessionHandle sessionid, @PathParam(value="tableName") String tableName)
sessionid
- session idtableName
- name of the table
@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 cube
LensException
org.apache.hadoop.hive.ql.metadata.HiveException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |