public interface IHbase
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
createHbaseTable(ISourceDTO source,
String tableName,
String[] colFamily)
hbase创建表
|
Boolean |
createHbaseTable(ISourceDTO source,
String namespace,
String tableName,
String[] colFamily)
hbase创建表,指定namespace
|
Boolean |
deleteByRowKey(ISourceDTO source,
String tableName,
String family,
String qualifier,
List<String> rowKeys)
hbase 根据rowKey删除数据
|
Boolean |
deleteHbaseTable(ISourceDTO source,
String tableName)
hbase 删除表
|
Boolean |
deleteHbaseTable(ISourceDTO source,
String namespace,
String tableName)
hbase 删除表
|
List<Map<String,Object>> |
executeQuery(ISourceDTO source,
HbaseQueryDTO hbaseQueryDTO,
TimestampFilter timestampFilter)
hbase 自定义查询
|
String |
getRow(ISourceDTO source,
String tableName,
String rowKey,
String family,
String qualifier)
hbase根据rowKey获取数据
|
Boolean |
isDbExists(ISourceDTO source,
String namespace)
判断namespace是否存在
|
List<List<String>> |
preview(ISourceDTO source,
String tableName,
Integer previewNum)
hbase 数据预览,如果有数据则第一行为字段信息,如果没有数据返回空 list
|
List<List<String>> |
preview(ISourceDTO source,
String tableName,
List<String> familyList,
Integer previewNum)
hbase 数据预览,如果有数据则第一行为字段信息,如果没有数据返回空 list
|
List<List<String>> |
preview(ISourceDTO source,
String tableName,
Map<String,List<String>> familyQualifierMap,
Integer previewNum)
hbase 数据预览,如果有数据则第一行为字段信息,如果没有数据返回空 list
|
Boolean |
putRow(ISourceDTO source,
String tableName,
String rowKey,
String family,
String qualifier,
String data)
hbase向指定的rowKey插入数据
|
List<String> |
scanByRegex(ISourceDTO source,
String tableName,
String regex)
hbase 根据正则查询匹配的数据,返回rowkey集合
|
Boolean isDbExists(ISourceDTO source, String namespace)
source - 数据源信息namespace - hbase namespaceBoolean createHbaseTable(ISourceDTO source, String tableName, String[] colFamily)
source - 数据源信息tableName - 表名colFamily - 列族列表Boolean createHbaseTable(ISourceDTO source, String namespace, String tableName, String[] colFamily)
source - 数据源信息namespace - hbase namespacetableName - 表名colFamily - 列族列表Boolean deleteHbaseTable(ISourceDTO source, String tableName)
source - 数据源信息tableName - 表名Boolean deleteHbaseTable(ISourceDTO source, String namespace, String tableName)
source - 数据源信息tableName - 表名List<String> scanByRegex(ISourceDTO source, String tableName, String regex)
source - 数据源连接信息tableName - 表名regex - 匹配正则Boolean deleteByRowKey(ISourceDTO source, String tableName, String family, String qualifier, List<String> rowKeys)
source - 数据源信息tableName - 表名rowKeys - rowkey列表Boolean putRow(ISourceDTO source, String tableName, String rowKey, String family, String qualifier, String data)
source - 数据源信息tableName - 表名rowKey - hbase rowkeyfamily - 列族qualifier - 列名data - 数据String getRow(ISourceDTO source, String tableName, String rowKey, String family, String qualifier)
source - 数据源信息tableName - 表名rowKey - hbase rowkeyList<List<String>> preview(ISourceDTO source, String tableName, Integer previewNum)
source - 数据源信息tableName - 表名previewNum - 预览条数,最大5000条 默认100条List<List<String>> preview(ISourceDTO source, String tableName, List<String> familyList, Integer previewNum)
source - 数据源信息tableName - 表名familyList - 预览指定列族的数据,即当前行如果有满足该列族的数据就返回previewNum - 预览条数,最大5000条 默认100条List<List<String>> preview(ISourceDTO source, String tableName, Map<String,List<String>> familyQualifierMap, Integer previewNum)
source - 数据源信息tableName - 表名familyQualifierMap - 预览指定列族、列名下的数据previewNum - 预览条数,最大5000条 默认100条List<Map<String,Object>> executeQuery(ISourceDTO source, HbaseQueryDTO hbaseQueryDTO, TimestampFilter timestampFilter)
source - 数据源信息hbaseQueryDTO - hbase 查询条件timestampFilter - 时间戳过滤Copyright © 2022. All rights reserved.