public class HBaseUtils extends Object
| Constructor and Description |
|---|
HBaseUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.carbon.analytics.datasource.commons.Record |
constructRecord(org.apache.hadoop.hbase.client.Result currentResult,
int tenantId,
String tableName,
Set<String> colSet) |
static org.apache.hadoop.fs.Path |
createPath(String source) |
static long |
decodeLong(byte[] arr) |
static byte[] |
encodeLong(long value) |
static String |
generateGenericTableName(int tenantId,
String tableName) |
static String |
generateTableName(int tenantId,
String tableName,
HBaseAnalyticsDSConstants.TableType type) |
static String |
generateTablePrefix(int tenantId,
HBaseAnalyticsDSConstants.TableType type) |
static String |
inferTableName(String genericTableName) |
static int |
inferTenantId(String genericTableName) |
static HBaseAnalyticsConfigurationEntry |
lookupConfiguration() |
static String |
normalizeTableName(String tableName) |
public static String generateTablePrefix(int tenantId, HBaseAnalyticsDSConstants.TableType type)
public static String generateTableName(int tenantId, String tableName, HBaseAnalyticsDSConstants.TableType type)
public static String generateGenericTableName(int tenantId, String tableName)
public static int inferTenantId(String genericTableName)
public static org.apache.hadoop.fs.Path createPath(String source)
public static byte[] encodeLong(long value)
public static long decodeLong(byte[] arr)
public static org.wso2.carbon.analytics.datasource.commons.Record constructRecord(org.apache.hadoop.hbase.client.Result currentResult,
int tenantId,
String tableName,
Set<String> colSet)
throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionpublic static HBaseAnalyticsConfigurationEntry lookupConfiguration() throws org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsException
org.wso2.carbon.analytics.datasource.commons.exception.AnalyticsExceptionCopyright © 2016 WSO2. All rights reserved.