public interface Record
| Modifier and Type | Method and Description |
|---|---|
Map<String,byte[]> |
getFieldMap()
获得所有字段包括key字段
|
int |
getIndex()
获得list表记录的索引值
|
byte[] |
getKeyBlob(String fieldName) |
byte |
getKeyByte(String fieldName) |
int |
getKeyCount() |
double |
getKeyDouble(String fieldName) |
float |
getKeyFloat(String fieldName) |
int |
getKeyInt(String fieldName) |
long |
getKeyLong(String fieldName) |
Map<String,byte[]> |
getKeyMap()
获得所有key字段
|
short |
getKeyShort(String fieldName) |
String |
getKeyString(String fieldName) |
long |
getLastAccessTime()
获得记录的最后修改时间,精度按64秒对齐。
|
int |
getResult()
对于批量处理类接口返回的响应中的Record对象,可通过该方法获取每个Record的处理结果。
非上述场景,该方法获取的值无效。
|
byte[] |
getValueBlob(String fieldName) |
byte |
getValueByte(String fieldName) |
int |
getValueCount() |
double |
getValueDouble(String fieldName) |
float |
getValueFloat(String fieldName) |
int |
getValueInt(String fieldName) |
long |
getValueLong(String fieldName) |
Map<String,byte[]> |
getValueMap()
获得所有value字段
|
short |
getValueShort(String fieldName) |
String |
getValueString(String fieldName) |
int |
getVersion()
获得记录版本号
|
boolean |
hasValueField(String fieldName)
判断value字段是否存在
|
void |
setIndex(int index)
设置list表记录的索引值
|
void |
setKeyBlob(String fieldName,
byte[] value) |
void |
setKeyByte(String fieldName,
byte value) |
void |
setKeyDouble(String fieldName,
double value) |
void |
setKeyFloat(String fieldName,
float value) |
void |
setKeyInt(String fieldName,
int value) |
void |
setKeyLong(String fieldName,
long value) |
void |
setKeyShort(String fieldName,
short value) |
void |
setKeyString(String fieldName,
String value) |
void |
setResult(int recordResult) |
void |
setValueBlob(String fieldName,
byte[] value) |
void |
setValueByte(String fieldName,
byte value) |
void |
setValueDouble(String fieldName,
double value) |
void |
setValueFloat(String fieldName,
float value) |
void |
setValueInt(String fieldName,
int value) |
void |
setValueLong(String fieldName,
long value) |
void |
setValueShort(String fieldName,
short value) |
void |
setValueString(String fieldName,
String value) |
void |
setVersion(int version)
设置记录版本号
|
String |
toString()
可视化对象
|
void setVersion(int version)
throws TCaplusException
version - 记录版本号。对于ListDeleteBatch操作,如果设置了校验版本号则设置所有元素的最大版本号。TCaplusExceptionint getVersion()
void setKeyByte(String fieldName, byte value) throws TCaplusException
TCaplusExceptionvoid setKeyShort(String fieldName, short value) throws TCaplusException
TCaplusExceptionvoid setKeyInt(String fieldName, int value) throws TCaplusException
TCaplusExceptionvoid setKeyLong(String fieldName, long value) throws TCaplusException
TCaplusExceptionvoid setKeyFloat(String fieldName, float value) throws TCaplusException
TCaplusExceptionvoid setKeyDouble(String fieldName, double value) throws TCaplusException
TCaplusExceptionvoid setKeyString(String fieldName, String value) throws TCaplusException
TCaplusExceptionvoid setKeyBlob(String fieldName, byte[] value) throws TCaplusException
TCaplusExceptionvoid setValueByte(String fieldName, byte value) throws TCaplusException
TCaplusExceptionvoid setValueShort(String fieldName, short value) throws TCaplusException
TCaplusExceptionvoid setValueInt(String fieldName, int value) throws TCaplusException
TCaplusExceptionvoid setValueLong(String fieldName, long value) throws TCaplusException
TCaplusExceptionvoid setValueFloat(String fieldName, float value) throws TCaplusException
TCaplusExceptionvoid setValueDouble(String fieldName, double value) throws TCaplusException
TCaplusExceptionvoid setValueString(String fieldName, String value) throws TCaplusException
TCaplusExceptionvoid setValueBlob(String fieldName, byte[] value) throws TCaplusException
TCaplusExceptionvoid setResult(int recordResult)
byte getKeyByte(String fieldName) throws TCaplusException
TCaplusExceptionshort getKeyShort(String fieldName) throws TCaplusException
TCaplusExceptionint getKeyInt(String fieldName) throws TCaplusException
TCaplusExceptionlong getKeyLong(String fieldName) throws TCaplusException
TCaplusExceptionfloat getKeyFloat(String fieldName) throws TCaplusException
TCaplusExceptiondouble getKeyDouble(String fieldName) throws TCaplusException
TCaplusExceptionString getKeyString(String fieldName) throws TCaplusException
TCaplusExceptionbyte[] getKeyBlob(String fieldName) throws TCaplusException
TCaplusExceptionint getKeyCount()
byte getValueByte(String fieldName) throws TCaplusException
TCaplusExceptionshort getValueShort(String fieldName) throws TCaplusException
TCaplusExceptionint getValueInt(String fieldName) throws TCaplusException
TCaplusExceptionlong getValueLong(String fieldName) throws TCaplusException
TCaplusExceptionfloat getValueFloat(String fieldName) throws TCaplusException
TCaplusExceptiondouble getValueDouble(String fieldName) throws TCaplusException
TCaplusExceptionString getValueString(String fieldName) throws TCaplusException
TCaplusExceptionbyte[] getValueBlob(String fieldName) throws TCaplusException
TCaplusExceptionint getValueCount()
void setIndex(int index)
index - list记录的索引值int getIndex()
long getLastAccessTime()
boolean hasValueField(String fieldName)
fieldName - 字段名int getResult()
Copyright © 2026. All rights reserved.