@Path(value="/") public class AnalyticsResource extends AbstractResource
AbstractResource.ResponseStatus| Constructor and Description |
|---|
AnalyticsResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
clearIndices(String tableName,
String authHeader)
Clear indices.
|
javax.ws.rs.core.Response |
clearTableCache(String tableName,
String authHeader)
To clear table information from in memory cache
|
javax.ws.rs.core.Response |
drillDown(DrillDownRequestBean requestBean,
String authHeader)
Performs the drilldown operation on a given table.
|
javax.ws.rs.core.Response |
drillDownCategories(CategoryDrillDownRequestBean requestBean,
String authHeader)
Performs the drilldown operation on a given field to get the child categories
|
javax.ws.rs.core.Response |
drillDownCount(DrillDownRequestBean requestBean,
String authHeader)
Performs the drilldown operation on a given table.
|
javax.ws.rs.core.Response |
drillDownRangeCount(DrillDownRequestBean requestBean,
String authHeader)
Performs the drilldown operation on a given set of range buckets of a field.
|
javax.ws.rs.core.Response |
getRecordCount(String tableName,
String authHeader)
Gets the record count.
|
javax.ws.rs.core.StreamingOutput |
getRecords(String tableName,
List<String> columns,
String authHeader)
Gets all the records.
|
javax.ws.rs.core.StreamingOutput |
getRecords(String tableName,
long timeFrom,
List<String> columns,
String authHeader)
Gets the records.
|
javax.ws.rs.core.StreamingOutput |
getRecords(String tableName,
long timeFrom,
long timeTo,
int recordsFrom,
int count,
List<String> columns,
String authHeader)
Gets the records.
|
javax.ws.rs.core.StreamingOutput |
getRecords(String tableName,
long timeFrom,
long timeTo,
List<String> columns,
int start,
String authHeader)
Gets the records.
|
javax.ws.rs.core.StreamingOutput |
getRecords(String tableName,
long timeFrom,
long timeTo,
List<String> columns,
String authHeader)
Gets the records.
|
javax.ws.rs.core.Response |
getRecordStoreByTableName(String tableName,
String authHeader)
Get the record store which a table belongs to
|
javax.ws.rs.core.StreamingOutput |
getRecordsWithKeyValues(String tableName,
ColumnKeyValueBean columnKeyValueBean,
String authHeader)
Gets the records which match the primary key values batch.
|
javax.ws.rs.core.Response |
getTablePersistName(String tableName,
String authHeader)
Gets the database persist name for a table
|
javax.ws.rs.core.Response |
getTableSchema(String tableName,
String authHeader)
Gets the analytics schema of a table
|
javax.ws.rs.core.Response |
listRecordStores(String authHeader)
List all the record stores in the system.
|
javax.ws.rs.core.Response |
listTables(String authHeader)
List all the tables.
|
javax.ws.rs.core.Response |
options()
Implements the OPTIONS HTTP method
|
javax.ws.rs.core.Response |
paginationSupported(String recordStoreName,
String authHeader)
Check if the given recordstore support pagination
|
javax.ws.rs.core.Response |
reIndex(String tableName,
long timeFrom,
long timeTo,
String authHeader)
Re-index the records of a given table between given timestamp range.
|
javax.ws.rs.core.Response |
search(QueryBean queryBean,
String authHeader)
Search records.
|
javax.ws.rs.core.Response |
searchCount(QueryBean queryBean,
String authHeader)
Returns the search record count.
|
javax.ws.rs.core.StreamingOutput |
searchWithAggregates(AggregateRequestBean[] aggregateRequestBeans,
String authHeader)
Returns the aggregated values of the given fields grouped by the given facet field.
|
javax.ws.rs.core.StreamingOutput |
searchWithAggregates(AggregateRequestBean aggregateRequestBean,
String authHeader)
Returns the aggregated values of the given fields grouped by the given facet field.
|
javax.ws.rs.core.Response |
setTableSchema(String tableName,
AnalyticsSchemaBean analyticsSchemaBean,
String authHeader)
Sets a analytics Schema for a table
|
javax.ws.rs.core.Response |
tableExists(String tableName,
String authHeader)
Check if the table Exists
|
javax.ws.rs.core.Response |
waitForIndexing(long seconds,
String tableName,
String authHeader)
waits till indexing finishes
|
handleResponsepublic javax.ws.rs.core.Response options()
@Path(value="table_exists") public javax.ws.rs.core.Response tableExists(String tableName, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="pagination/{recordStoreName}")
public javax.ws.rs.core.Response paginationSupported(String recordStoreName,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables")
public javax.ws.rs.core.Response listTables(@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="recordstores")
public javax.ws.rs.core.Response listRecordStores(@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="recordstore") public javax.ws.rs.core.Response getRecordStoreByTableName(String tableName, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/recordcount")
public javax.ws.rs.core.Response getRecordCount(String tableName,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table nameorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/{from}/{to}/{start}/{count}")
public javax.ws.rs.core.StreamingOutput getRecords(String tableName,
long timeFrom,
long timeTo,
int recordsFrom,
int count,
List<String> columns,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table nametimeFrom - the start timetimeTo - the end timerecordsFrom - the starting recordcount - the countorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/{from}/{to}/{start}")
public javax.ws.rs.core.StreamingOutput getRecords(String tableName,
long timeFrom,
long timeTo,
List<String> columns,
int start,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table nametimeFrom - the time fromtimeTo - the time toorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/{from}/{to}")
public javax.ws.rs.core.StreamingOutput getRecords(String tableName,
long timeFrom,
long timeTo,
List<String> columns,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table nametimeFrom - the time fromtimeTo - the time toorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/{from}")
public javax.ws.rs.core.StreamingOutput getRecords(String tableName,
long timeFrom,
List<String> columns,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table nametimeFrom - the time fromorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}")
public javax.ws.rs.core.StreamingOutput getRecords(String tableName,
List<String> columns,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table nameorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/keyed_records")
public javax.ws.rs.core.StreamingOutput getRecordsWithKeyValues(String tableName,
ColumnKeyValueBean columnKeyValueBean,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table namecolumnKeyValueBean - bean containing the columns and values batchauthHeader - the countorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/indexData")
public javax.ws.rs.core.Response clearIndices(String tableName,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table nameorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="search") public javax.ws.rs.core.Response search(QueryBean queryBean, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
queryBean - the query beanorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="drilldown") public javax.ws.rs.core.Response drillDown(DrillDownRequestBean requestBean, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
requestBean - request for drilldown which contains all the details to be drilled downauthHeader - basic authentication header base64 encodedorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="drillDownScoreCount") public javax.ws.rs.core.Response drillDownCount(DrillDownRequestBean requestBean, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
requestBean - request for drilldown which contains all the details to be drilled downauthHeader - basic authentication header base64 encodedorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="rangecount") public javax.ws.rs.core.Response drillDownRangeCount(DrillDownRequestBean requestBean, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
requestBean - request for drilldown which contains all the details to be drilled downauthHeader - basic authentication header base64 encodedorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="facets") public javax.ws.rs.core.Response drillDownCategories(CategoryDrillDownRequestBean requestBean, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
requestBean - request for drilldown which contains all the details of the category drilldownauthHeader - basic authentication header base64 encodedorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="search_count") public javax.ws.rs.core.Response searchCount(QueryBean queryBean, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
queryBean - the query beanResponseresponseorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="indexing_done")
public javax.ws.rs.core.Response waitForIndexing(long seconds,
String tableName,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
seconds - tthe timeout for waiting till response returnsResponseresponseorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/schema")
public javax.ws.rs.core.Response setTableSchema(String tableName,
AnalyticsSchemaBean analyticsSchemaBean,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - table Name of which the analytics schema to be setanalyticsSchemaBean - table schema which represents the analytics schemaResponse responseorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/schema")
public javax.ws.rs.core.Response getTableSchema(String tableName,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table name of which the schema to be retrievedorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="multi_aggregates") public javax.ws.rs.core.StreamingOutput searchWithAggregates(AggregateRequestBean[] aggregateRequestBeans, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
aggregateRequestBeans - the aggregate request beanResponseresponseorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="aggregates") public javax.ws.rs.core.StreamingOutput searchWithAggregates(AggregateRequestBean aggregateRequestBean, @HeaderParam(value="Authorization") String authHeader) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
aggregateRequestBean - the aggregate request beanResponseresponseorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}")
public javax.ws.rs.core.Response reIndex(String tableName,
long timeFrom,
long timeTo,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table nametimeFrom - the time fromtimeTo - the time toorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/persistName")
public javax.ws.rs.core.Response getTablePersistName(String tableName,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - the table name of which the persist name to be retrievedorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException@Path(value="tables/{tableName}/schema-invalidate")
public javax.ws.rs.core.Response clearTableCache(String tableName,
@HeaderParam(value="Authorization")
String authHeader)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
tableName - table Name of which that cache going to clearResponse responseorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionCopyright © 2016 WSO2. All rights reserved.