public class AnalyticsResource extends AbstractResource
AbstractResource.ResponseStatus| Constructor and Description |
|---|
AnalyticsResource()
Instantiates a new analytics resource.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
clearIndices(String tableName,
int tenantI)
Clear indices.
|
javax.ws.rs.core.Response |
createTable(String tableName)
Creates the table.
|
javax.ws.rs.core.Response |
deleteRecords(String tableName,
long timeFrom,
long timeTo,
List<String> ids)
Delete records.
|
javax.ws.rs.core.Response |
deleteTable(String tableName)
Delete table.
|
javax.ws.rs.core.Response |
getIndices(String tableName,
int tenantI)
Gets the indices.
|
javax.ws.rs.core.Response |
getRecordCount(String tableName,
int tenantI)
Gets the record count.
|
javax.ws.rs.core.Response |
getRecords(String tableName)
Gets all the records.
|
javax.ws.rs.core.Response |
getRecords(String tableName,
long timeFrom,
long timeTo)
Gets the records.
|
javax.ws.rs.core.Response |
getRecords(String tableName,
long timeFrom,
long timeTo,
int recordsFrom,
int count)
Gets the records.
|
javax.ws.rs.core.Response |
getRecordsByIds(String tableName,
List<String> ids)
Gets the records, But this is a POST request, since we have to send ids in the content.
|
javax.ws.rs.core.Response |
insertRecords(List<RecordBean> recordBeans)
Inserts a list of records.
|
javax.ws.rs.core.Response |
listTables(int tenantI)
List all the tables.
|
javax.ws.rs.core.Response |
search(QueryBean queryBean)
Search records.
|
javax.ws.rs.core.Response |
searchCount(QueryBean queryBean)
Returns the search record count.
|
javax.ws.rs.core.Response |
setIndices(String tableName,
int tenantI,
Map<String,IndexTypeBean> columnsBean)
Sets the indices.
|
javax.ws.rs.core.Response |
tableExist(String tableName)
Checks if a table exist.
|
javax.ws.rs.core.Response |
updateRecords(List<RecordBean> recordBeans)
Updates a list of records.
|
handleResponsepublic AnalyticsResource()
throws AnalyticsRESTException
AnalyticsRESTException - the analytics rest exceptionpublic javax.ws.rs.core.Response createTable(String tableName)
tableName - the table namepublic javax.ws.rs.core.Response tableExist(String tableName)
tableName - the table namepublic javax.ws.rs.core.Response deleteTable(String tableName)
tableName - the table namepublic javax.ws.rs.core.Response deleteRecords(String tableName, long timeFrom, long timeTo, List<String> ids)
tableName - the table nametimeFrom - the time fromtimeTo - the time toids - the idspublic javax.ws.rs.core.Response listTables(int tenantI)
tenantI - the tenant ipublic javax.ws.rs.core.Response getRecordCount(String tableName, int tenantI)
tableName - the table nametenantI - the tenant ipublic javax.ws.rs.core.Response getRecords(String tableName, long timeFrom, long timeTo, int recordsFrom, int count)
tableName - the table nametimeFrom - the start timetimeTo - the end timerecordsFrom - the starting recordcount - the countpublic javax.ws.rs.core.Response getRecords(String tableName, long timeFrom, long timeTo)
tableName - the table nametimeFrom - the time fromtimeTo - the time topublic javax.ws.rs.core.Response getRecords(String tableName)
tableName - the table namepublic javax.ws.rs.core.Response getRecordsByIds(String tableName, List<String> ids)
tableName - the table nameids - the idspublic javax.ws.rs.core.Response insertRecords(List<RecordBean> recordBeans)
recordBeans - the list of the record beanspublic javax.ws.rs.core.Response updateRecords(List<RecordBean> recordBeans)
recordBeans - the record beanspublic javax.ws.rs.core.Response setIndices(String tableName, int tenantI, Map<String,IndexTypeBean> columnsBean)
tableName - the table nametenantI - the tenant icolumnsBean - the columns bean containing all the indicespublic javax.ws.rs.core.Response getIndices(String tableName, int tenantI)
tableName - the table nametenantI - the tenant ipublic javax.ws.rs.core.Response clearIndices(String tableName, int tenantI)
tableName - the table nametenantI - the tenant ipublic javax.ws.rs.core.Response search(QueryBean queryBean)
queryBean - the query beanpublic javax.ws.rs.core.Response searchCount(QueryBean queryBean)
queryBean - the query beanCopyright © 2015 WSO2. All rights reserved.