IfxLoStat 类存储关于智能大对象的某些统计信息,诸如大小、最后访问时间、最后修改时
间、最后状态更改,等等。下表展示您可取得的状态信息。
表 1. 智能大对象的状态信息
状态信
息
描述
最后访
问时间
最后访问智能大对象的时间,以秒计
仅当为智能大对象启用最后访问时间属性时,此值才可用。要获取更多信息,请
参阅 最后访问时间。
最后更
改时间
最后更改智能大对象的状态的时间,以秒计
状态更改包括元数据更改和用户数据更改(对引用数的数据更新和更改)。以从
19701 年 1 月 1 日以来的秒数来存储此系统时间。
最后修
改时间
最后修改智能大对象的时间,以秒计
修改仅包括对元数据和用户数据的更改
(数据更新)
。
以从 19701 年 1 月 1 日
以来的秒数来存储此系统时间。
在某些平台上,最后修改时间可能还有微秒组件,可单独从秒组件取得它。
大小
智能大对象的大小,以字节计
存储特
征
请参阅 使用存储特征。
GBase 8s JDBC Driver 程序员指南
南大通用数据技术股份有限公司
- 161
-
要取得对状态结构的引用,请调用 IfxSmartBlob 类中的下列方法:
IfxLoStat IfxLoGetStat(int lofd)
要取得状态信息的特别分类,请调用下表中展示的方法。
表 2. 取得状态信息的方法
状态信息
ifxLoStat 类中的方法签名
最后访问时间 int getLastAccessTime()
最后更改时间 int getLastStatusTime()
最后修改时间 int getLastModifyTimeM() - 以微秒计的时间
int getLastModifyTimeS() - 取整到秒的时间
大小
int getSize()
存储特征
ifxLobDescriptor getLobDescriptor()