| Constructor and Description |
|---|
RecordLite() |
| Modifier and Type | Method and Description |
|---|---|
void |
assemble(TCaplusKeySet keySet) |
void |
assemble(TCaplusKeySet keySet,
TCaplusUpdFieldSet updateSet) |
void |
assemble(TCaplusKeySet keySet,
TCaplusValueSet_ valueSet) |
boolean |
equals(Object obj) |
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 |
setKeyMap(Map<String,byte[]> keyMap) |
void |
setKeyShort(String fieldName,
short value) |
void |
setKeyString(String fieldName,
String value) |
void |
setLastAccessTime(long lastAccessTime) |
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 |
setValueMap(Map<String,byte[]> valueMap) |
void |
setValueShort(String fieldName,
short value) |
void |
setValueString(String fieldName,
String value) |
void |
setVersion(int version)
设置记录版本号
|
String |
toString()
可视化对象
|
public void setVersion(int version)
throws TCaplusException
RecordsetVersion in interface Recordversion - 记录版本号。对于ListDeleteBatch操作,如果设置了校验版本号则设置所有元素的最大版本号。TCaplusExceptionpublic int getVersion()
RecordgetVersion in interface Recordpublic void setKeyByte(String fieldName, byte value) throws TCaplusException
setKeyByte in interface RecordTCaplusExceptionpublic void setKeyShort(String fieldName, short value) throws TCaplusException
setKeyShort in interface RecordTCaplusExceptionpublic void setKeyInt(String fieldName, int value) throws TCaplusException
setKeyInt in interface RecordTCaplusExceptionpublic void setKeyLong(String fieldName, long value) throws TCaplusException
setKeyLong in interface RecordTCaplusExceptionpublic void setKeyFloat(String fieldName, float value) throws TCaplusException
setKeyFloat in interface RecordTCaplusExceptionpublic void setKeyDouble(String fieldName, double value) throws TCaplusException
setKeyDouble in interface RecordTCaplusExceptionpublic void setKeyString(String fieldName, String value) throws TCaplusException
setKeyString in interface RecordTCaplusExceptionpublic void setKeyBlob(String fieldName, byte[] value) throws TCaplusException
setKeyBlob in interface RecordTCaplusExceptionpublic void setValueByte(String fieldName, byte value) throws TCaplusException
setValueByte in interface RecordTCaplusExceptionpublic void setValueShort(String fieldName, short value) throws TCaplusException
setValueShort in interface RecordTCaplusExceptionpublic void setValueInt(String fieldName, int value) throws TCaplusException
setValueInt in interface RecordTCaplusExceptionpublic void setValueLong(String fieldName, long value) throws TCaplusException
setValueLong in interface RecordTCaplusExceptionpublic void setValueFloat(String fieldName, float value) throws TCaplusException
setValueFloat in interface RecordTCaplusExceptionpublic void setValueDouble(String fieldName, double value) throws TCaplusException
setValueDouble in interface RecordTCaplusExceptionpublic void setValueString(String fieldName, String value) throws TCaplusException
setValueString in interface RecordTCaplusExceptionpublic void setValueBlob(String fieldName, byte[] value) throws TCaplusException
setValueBlob in interface RecordTCaplusExceptionpublic byte getKeyByte(String fieldName) throws TCaplusException
getKeyByte in interface RecordTCaplusExceptionpublic short getKeyShort(String fieldName) throws TCaplusException
getKeyShort in interface RecordTCaplusExceptionpublic int getKeyInt(String fieldName) throws TCaplusException
getKeyInt in interface RecordTCaplusExceptionpublic long getKeyLong(String fieldName) throws TCaplusException
getKeyLong in interface RecordTCaplusExceptionpublic float getKeyFloat(String fieldName) throws TCaplusException
getKeyFloat in interface RecordTCaplusExceptionpublic double getKeyDouble(String fieldName) throws TCaplusException
getKeyDouble in interface RecordTCaplusExceptionpublic String getKeyString(String fieldName) throws TCaplusException
getKeyString in interface RecordTCaplusExceptionpublic byte[] getKeyBlob(String fieldName) throws TCaplusException
getKeyBlob in interface RecordTCaplusExceptionpublic int getKeyCount()
getKeyCount in interface Recordpublic byte getValueByte(String fieldName) throws TCaplusException
getValueByte in interface RecordTCaplusExceptionpublic short getValueShort(String fieldName) throws TCaplusException
getValueShort in interface RecordTCaplusExceptionpublic int getValueInt(String fieldName) throws TCaplusException
getValueInt in interface RecordTCaplusExceptionpublic long getValueLong(String fieldName) throws TCaplusException
getValueLong in interface RecordTCaplusExceptionpublic float getValueFloat(String fieldName) throws TCaplusException
getValueFloat in interface RecordTCaplusExceptionpublic double getValueDouble(String fieldName) throws TCaplusException
getValueDouble in interface RecordTCaplusExceptionpublic String getValueString(String fieldName) throws TCaplusException
getValueString in interface RecordTCaplusExceptionpublic byte[] getValueBlob(String fieldName) throws TCaplusException
getValueBlob in interface RecordTCaplusExceptionpublic int getValueCount()
getValueCount in interface Recordpublic void setIndex(int index)
Recordpublic int getIndex()
Recordpublic long getLastAccessTime()
RecordgetLastAccessTime in interface Recordpublic boolean hasValueField(String fieldName)
RecordhasValueField in interface RecordfieldName - 字段名public Map<String,byte[]> getValueMap()
RecordgetValueMap in interface Recordpublic Map<String,byte[]> getFieldMap()
RecordgetFieldMap in interface Recordpublic int getResult()
Recordpublic void assemble(TCaplusKeySet keySet, TCaplusUpdFieldSet updateSet)
public void assemble(TCaplusKeySet keySet, TCaplusValueSet_ valueSet)
public void assemble(TCaplusKeySet keySet)
public void setLastAccessTime(long lastAccessTime)
Copyright © 2026. All rights reserved.