public class HBaseAnalyticsRecordStore extends Object implements org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStore
AnalyticsRecordStore| Modifier and Type | Class and Description |
|---|---|
static class |
HBaseAnalyticsRecordStore.HBaseUnsupportedOperationException |
| Constructor and Description |
|---|
HBaseAnalyticsRecordStore() |
HBaseAnalyticsRecordStore(org.apache.hadoop.hbase.client.Connection conn,
HBaseAnalyticsConfigurationEntry entry) |
| 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) |
org.wso2.carbon.analytics.datasource.commons.AnalyticsIterator<org.wso2.carbon.analytics.datasource.commons.Record> |
getRecords(int tenantId,
String tableName,
List<String> columns,
int recordsCount,
byte[] startRow,
byte[] endRow) |
org.wso2.carbon.analytics.datasource.commons.AnalyticsIterator<org.wso2.carbon.analytics.datasource.commons.Record> |
getRecords(int tenantId,
String tableName,
List<String> columns,
List<String> ids) |
org.wso2.carbon.analytics.datasource.commons.AnalyticsIterator<org.wso2.carbon.analytics.datasource.commons.Record> |
getRecords(int tenantId,
String tableName,
List<String> columns,
long startTime,
long endTime,
int recordsCount) |
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) |
boolean |
tableExists(int tenantId,
String tableName) |
public HBaseAnalyticsRecordStore(org.apache.hadoop.hbase.client.Connection conn,
HBaseAnalyticsConfigurationEntry entry)
throws IOException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
IOExceptionorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic HBaseAnalyticsRecordStore()
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 boolean tableExists(int tenantId,
String tableName)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic 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 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 long getRecordCount(int tenantId,
String tableName,
long timeFrom,
long timeTo)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
getRecordCount in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic 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.AnalyticsTableNotAvailableExceptionpublic 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,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
readRecords 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> getRecords(int tenantId,
String tableName,
List<String> columns,
List<String> ids)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
org.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> getRecords(int tenantId,
String tableName,
List<String> columns,
long startTime,
long endTime,
int recordsCount)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
org.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> getRecords(int tenantId,
String tableName,
List<String> columns,
int recordsCount,
byte[] startRow,
byte[] endRow)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException,
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsTableNotAvailableExceptionpublic void delete(int tenantId,
String tableName,
long timeFrom,
long timeTo)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
delete in interface org.wso2.carbon.analytics.datasource.core.rs.AnalyticsRecordStoreorg.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic void delete(int tenantId,
String tableName,
List<String> ids)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
delete 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.AnalyticsExceptionCopyright © 2016 WSO2. All rights reserved.