public class OTSConverter extends Object
| 构造器和说明 |
|---|
OTSConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<com.alicloud.openservices.tablestore.model.Column> |
convertColumns(Map<String,Object> columnMap)
转换列
|
static com.alicloud.openservices.tablestore.model.PrimaryKey |
convertPrimaryKey(Map<String,Object> keyMap)
主键转换
|
static Map<String,Object> |
convertPrimaryKey(com.alicloud.openservices.tablestore.model.PrimaryKey primaryKey)
主键转换
|
static com.alicloud.openservices.tablestore.model.Row |
convertRecord(KVRecord kvRecord)
转换OTS数据
|
static KVRecord |
convertRecord(com.alicloud.openservices.tablestore.model.Row row)
转换OTS数据
|
static Map<String,Object> |
convertRecordColumns(List<com.alicloud.openservices.tablestore.model.RecordColumn> recordColumns)
转换列
|
static KVRecord |
convertStreamRecord(com.alicloud.openservices.tablestore.model.StreamRecord streamRecord)
转换流数据
|
public static KVRecord convertStreamRecord(com.alicloud.openservices.tablestore.model.StreamRecord streamRecord)
streamRecord - 流数据public static KVRecord convertRecord(com.alicloud.openservices.tablestore.model.Row row)
row - 原始OTS数据public static com.alicloud.openservices.tablestore.model.Row convertRecord(KVRecord kvRecord)
kvRecord - 转换数据public static Map<String,Object> convertPrimaryKey(com.alicloud.openservices.tablestore.model.PrimaryKey primaryKey)
primaryKey - OTS主键public static com.alicloud.openservices.tablestore.model.PrimaryKey convertPrimaryKey(Map<String,Object> keyMap)
keyMap - 主键映射public static Map<String,Object> convertRecordColumns(List<com.alicloud.openservices.tablestore.model.RecordColumn> recordColumns)
recordColumns - OTS流数据列Copyright © 2023. All rights reserved.