类 OTSClient
- java.lang.Object
-
- xin.manong.weapon.aliyun.ots.OTSClient
-
- 所有已实现的接口:
xin.manong.weapon.base.rebuild.Rebuildable
public class OTSClient extends Object implements xin.manong.weapon.base.rebuild.Rebuildable
OTS客户端- 作者:
- frankcl
-
-
构造器概要
构造器 构造器 说明 OTSClient(OTSClientConfig config)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()关闭OTS客户端OTSStatusdelete(String tableName, Map<String,Object> keyMap, com.alicloud.openservices.tablestore.model.Condition condition)根据key删除数据xin.manong.weapon.base.record.KVRecordget(String tableName, Map<String,Object> keyMap)获取数据List<xin.manong.weapon.base.record.KVRecord>getRange(String tableName, Map<String,Object> startKeyMap, Map<String,Object> endKeyMap)获取范围数据OTSStatusput(String tableName, xin.manong.weapon.base.record.KVRecord kvRecord, com.alicloud.openservices.tablestore.model.Condition condition)添加数据RecordIteratorrangeIterator(String tableName, Map<String,Object> startKeyMap, Map<String,Object> endKeyMap)按照范围迭代数据voidrebuild()OTSSearchResponsesearch(OTSSearchRequest request)数据搜索OTSStatusupdate(String tableName, xin.manong.weapon.base.record.KVRecord kvRecord, com.alicloud.openservices.tablestore.model.Condition condition)更新数据
-
-
-
构造器详细资料
-
OTSClient
public OTSClient(OTSClientConfig config)
-
-
方法详细资料
-
close
public void close()
关闭OTS客户端
-
rebuild
public void rebuild()
- 指定者:
rebuild在接口中xin.manong.weapon.base.rebuild.Rebuildable
-
rangeIterator
public RecordIterator rangeIterator(String tableName, Map<String,Object> startKeyMap, Map<String,Object> endKeyMap)
按照范围迭代数据- 参数:
tableName- 表名startKeyMap- 起始主键endKeyMap- 结束主键- 返回:
- 数据迭代器
-
getRange
public List<xin.manong.weapon.base.record.KVRecord> getRange(String tableName, Map<String,Object> startKeyMap, Map<String,Object> endKeyMap)
获取范围数据- 参数:
tableName- 表名startKeyMap- 起始主键endKeyMap- 结束主键- 返回:
- 数据列表
-
get
public xin.manong.weapon.base.record.KVRecord get(String tableName, Map<String,Object> keyMap)
获取数据- 参数:
tableName- 表名keyMap- 主键映射- 返回:
- 如果存在返回数据,否则返回null
-
delete
public OTSStatus delete(String tableName, Map<String,Object> keyMap, com.alicloud.openservices.tablestore.model.Condition condition)
根据key删除数据- 参数:
tableName- 表名keyMap- 主键condition- 删除条件,无条件删除使用null- 返回:
- OTS状态
-
put
public OTSStatus put(String tableName, xin.manong.weapon.base.record.KVRecord kvRecord, com.alicloud.openservices.tablestore.model.Condition condition)
添加数据- 参数:
tableName- 表名kvRecord- 数据condition- 添加条件,无条件添加传递null- 返回:
- OTS状态
-
update
public OTSStatus update(String tableName, xin.manong.weapon.base.record.KVRecord kvRecord, com.alicloud.openservices.tablestore.model.Condition condition)
更新数据- 参数:
tableName- 表名kvRecord- 更新数据condition- 更新条件,无条件更新使用null- 返回:
- OTS状态
-
search
public OTSSearchResponse search(OTSSearchRequest request)
数据搜索- 参数:
request- 搜素请求- 返回:
- 搜索响应
-
-