public class MongoAnalyticsRecordStore extends Object implements org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStore
AnalyticsRecordStore.| Constructor and Description |
|---|
MongoAnalyticsRecordStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(int tenantId,
String tableName) |
void |
delete(int tenantId,
String tableName,
List<String> ids) |
void |
delete(int tenantId,
String tableName,
long timeFrom,
long timeTo) |
void |
deleteTable(int tenantId,
String tableName) |
void |
destroy() |
org.wso2.carbon.analytics.datasource.commons.RecordGroup[] |
get(int tenantId,
String tableName,
int numPartitionsHint,
List<String> columns,
List<String> ids) |
org.wso2.carbon.analytics.datasource.commons.RecordGroup[] |
get(int tenantId,
String tableName,
int numPartitionsHint,
List<String> columns,
long timeFrom,
long timeTo,
int recordsFrom,
int recordsCount) |
long |
getRecordCount(int tenantId,
String tableName,
long timeFrom,
long timeTo) |
void |
init(Map<String,String> properties) |
boolean |
isPaginationSupported() |
boolean |
isRecordCountSupported() |
void |
put(List<org.wso2.carbon.analytics.datasource.commons.Record> records) |
org.wso2.carbon.analytics.datasource.commons.AnalyticsIterator<org.wso2.carbon.analytics.datasource.commons.Record> |
readRecords(org.wso2.carbon.analytics.datasource.commons.RecordGroup recordGroup) |
public void init(Map<String,String> properties) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
init in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic void createTable(int tenantId,
String tableName)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
createTable in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic void delete(int tenantId,
String tableName,
long timeFrom,
long timeTo)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
delete in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableExceptionpublic void delete(int tenantId,
String tableName,
List<String> ids)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
delete in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableExceptionpublic void deleteTable(int tenantId,
String tableName)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
deleteTable in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic void destroy()
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
destroy in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic org.wso2.carbon.analytics.datasource.commons.RecordGroup[] get(int tenantId,
String tableName,
int numPartitionsHint,
List<String> columns,
long timeFrom,
long timeTo,
int recordsFrom,
int recordsCount)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
get in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableExceptionpublic org.wso2.carbon.analytics.datasource.commons.RecordGroup[] get(int tenantId,
String tableName,
int numPartitionsHint,
List<String> columns,
List<String> ids)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
get in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableExceptionpublic org.wso2.carbon.analytics.datasource.commons.AnalyticsIterator<org.wso2.carbon.analytics.datasource.commons.Record> readRecords(org.wso2.carbon.analytics.datasource.commons.RecordGroup recordGroup)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
readRecords in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic long getRecordCount(int tenantId,
String tableName,
long timeFrom,
long timeTo)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
getRecordCount in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableExceptionpublic boolean isPaginationSupported()
isPaginationSupported in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStorepublic boolean isRecordCountSupported()
isRecordCountSupported in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStorepublic void put(List<org.wso2.carbon.analytics.datasource.commons.Record> records) throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException, org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
put in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableExceptionCopyright © 2018 WSO2. All rights reserved.