当前位置:网站首页>[in depth understanding of tcallusdb technology] description of data interface of designated location in replacement list - [list table]
[in depth understanding of tcallusdb technology] description of data interface of designated location in replacement list - [list table]
2022-04-22 15:11:00 【Database master】
Abstract
Implement the specified in the replacement table Key Data at the specified location in the list of .
Sample code
See Chapter... For synchronous call :[List surface ] Sample code for replacing location data specified in the list .
See Chapter... For asynchronous call : Asynchronous call interface sample code .
Request Object method description
notes : If not listed Request Object methods , This means that this method is invalid in the scenario of replacing data .
| Method signature | Method statement |
|---|---|
void setCmd(int cmd) |
Set request type ( Instructions ).cmd: Request type , Fixed for TcaplusProtocolCsConstants.TCAPLUS_CMD_LIST_REPLACE_REQ. |
void setTableName(String tableName) |
Set the target table name .tableName: Target table name , Not for null. |
Record addRecord(int index) |
Get data objects (Record), Used to set the data to be updated Key New Value value , The user can call the... Of the object setKeyXXX Method to set each Key Value of field , adopt setValueXXX Set each Value New value for field .index: The sequence number of the data to be read in the list , from 0 Start , It can't be negative . |
Request Medium Record Object method description
notes : If not listed Record Object methods , This means that this method is invalid in the scenario of replacing data .
| Method signature | Method statement |
|---|---|
void setVersion(int version) |
Set the version number of the record .version: If it is set to a negative number , Indicates that the current data does not start version control . |
void setKeyByte(String fieldName, byte value) |
Sets the of the specified name Key Value of field . Be careful : When TDR The table describes the field types and defined in the file Java Of byte When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setKeyShort(String fieldName, short value) |
Sets the of the specified name Key Value of field . Be careful : When TDR The table describes the field types and defined in the file Java Of short When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setKeyInt(String fieldName, int value) |
Sets the of the specified name Key Value of field . Be careful : When TDR The table describes the field types and defined in the file Java Of int When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setKeyLong(String fieldName, long value) |
Sets the of the specified name Key Value of field . Be careful : When TDR The table describes the field types and defined in the file Java Of long When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setKeyFloat(String fieldName, float value) |
Sets the of the specified name Key Value of field . Be careful : When TDR The table describes the field types and defined in the file Java Of float When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setKeyDouble(String fieldName, double value) |
Sets the of the specified name Key Value of field . Be careful : When TDR The table describes the field types and defined in the file Java Of double When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setKeyString(String fieldName, String value) |
Sets the of the specified name Key Value of field . Be careful : When TDR The table describes the field types and defined in the file Java Of String When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setKeyBlob(String fieldName, byte[] value) |
Sets the of the specified name Key Value of field . Be careful : When TDR The table describes the field types and defined in the file Java Of byte[] When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setValueByte(String fieldName, byte value) |
Sets the of the specified name Value New value for field . Be careful : When TDR The table describes the field types and defined in the file Java Of byte When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setValueShort(String fieldName, short value) |
Sets the of the specified name Value New value for field . Be careful : When TDR The table describes the field types and defined in the file Java Of short When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setValueInt(String fieldName, int value) |
Sets the of the specified name Value New value for field . Be careful : When TDR The table describes the field types and defined in the file Java Of int When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setValueLong(String fieldName, long value) |
Sets the of the specified name Value New value for field . Be careful : When TDR The table describes the field types and defined in the file Java Of long When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setValueFloat(String fieldName, float value) |
Sets the of the specified name Value New value for field . Be careful : When TDR The table describes the field types and defined in the file Java Of float When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setValueDouble(String fieldName, double value) |
Sets the of the specified name Value New value for field . Be careful : When TDR The table describes the field types and defined in the file Java Of double When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setValueString(String fieldName, String value) |
Sets the of the specified name Value New value for field . Be careful : When TDR The table describes the field types and defined in the file Java Of String When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
void setValueBlob(String fieldName, byte[] value) |
Sets the of the specified name Value New value for field . Be careful : When TDR The table describes the field types and defined in the file Java Of byte[] When type corresponds , This method can be called to set the field value , Otherwise, the server will have parameter errors when processing the request . See TDR Table field type and Java Type correspondence .fieldName: Field name , Do not for null.value: New value for field . |
Response Object method description
notes : If not listed Response Object methods , This means that this method is invalid in the scenario of replacing data .
| Method signature | Method statement |
|---|---|
int getResult() |
Get the response code of the replacement data request .0 Indicates the operation is successful . Not 0 Indicates that the operation is abnormal , See Description of the meaning of the response code . |

TcaplusDB It's a distributed product of Tencent NoSQL database , The code for storage and scheduling is completely self-developed . With cache + Landing fusion architecture 、PB Levels of storage 、 Millisecond delay 、 Lossless horizontal expansion and complex data structure . At the same time, it has rich ecological environment 、 Easy migration 、 Extremely low operation and maintenance costs and five nine high availability features . Customer coverage game 、 Internet 、 government affairs 、 Finance 、 Manufacturing and the Internet of things .
版权声明
本文为[Database master]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221501395144.html
边栏推荐
- Raspberry Pi B的UART极简例程
- 运输层——无连接运输:UDP(2)
- 攒机笔记二十:改造笔记本电脑(华硕A555L)
- Construction of information research and judgment analysis platform and development of information, guidance and logistics integrated management system
- 入参有汉字,报错500,服务器内部错误
- dried food! Reflection on the image migration of targeted confrontation
- 2022年化工自动化控制仪表考试题库及在线模拟考试
- [Mysql] CHAR_LENGTH函数
- 2022 welder (primary) operation certificate examination question bank and answers
- MySQL initialization error
猜你喜欢

Memcpy() function copies two-dimensional array & memcmp() function compares two-dimensional array

Installation and use of distributed task scheduling platform xxl-job

2022 tea artist (intermediate) examination questions and answers

ROS通信机制二---服务通信

Development trend of C in 2022

Workplace PUA, five sins of managers

redis优化系列(一)基于docker搭建Redis主从

Android的UI---ZoomControls放大缩小图片,android面试简历模板

About STS access control of Alibaba cloud OSS resources

人脸识别 (4) 人脸对齐
随机推荐
运输层——运输层概述(1)
SMB+MSSQL
小心间谍出没!维护国家安全,你我共同守护
腾讯云IM集成(so easy)
2022 tea artist (intermediate) examination questions and answers
[C language] learn file operation in 10 minutes
【深入理解TcaplusDB技术】根据部分Key字段值读取数据示例代码——[Generic表]
如何通过云效Projex项目协同提高团队更高效的协作能力
徽商期货是正规平台吗?开户安全吗?
Face recognition (4) face alignment
Android eye protection function, double non undergraduate byte beating Android interview question sharing
学校固定资产管理系统由谁来做,云呐RFID固定资产管理系统
金鱼哥RHCA回忆录:RH358管理DNS和DNS服务器--DNS问题故障排除
Redis interview question summary, MySQL index optimization, frequently asked interview questions
人脸识别 (5) 基于MCTNN人脸检测(Pytorch)
redis优化系列(一)基于docker搭建Redis主从
Redis optimization series (I) building redis master-slave based on docker
vscode处理代码合并冲突
PAT甲级1012:The Best Rank (25)
In the second half of the smart watch, opportunities and challenges coexist