检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《计算机工程》2011年第5期41-43,共3页Computer Engineering
基 金:国家"863"计划基金资助项目(2009AA12Z305);国家自然科学基金资助项目(40874008)
摘 要:当前的数据库系统不能提供对文件夹存取的直接支持。针对该问题,综合数据库二进制大对象(BLOB)技术、流技术和序列化技术,提出一种数据库中文件夹的整体存储和随机访问方法。将文件夹打包成连续的文件数据块和目录结构对象,序列化目录结构对象为目录结构数据块,保存文件数据块和目录结构数据块至数据库的BLOB列。访问数据库文件时,读取目录结构BLOB为目录结构数据块,通过反序列化将其恢复成目录结构对象。从目录结构对象中可选择欲访问的文件,确定其在文件数据BLOB中的位置和大小,读取其对应的数据,从而实现对数据库中文件夹的随机访问。Existing database system can not support to store a whole folder into a database and provide random access to any file in it.Aiming at this problem,this paper puts forward a method to store a folder as a whole and access its file randomly in a database based on the integration of Binary Large Object(BLOB),stream and serialization technology.The folder is packed up,resulting in a file stream and a directory structure object.The directory structure object is serialized to a directory structure stream.The file stream and directory structure stream are saved as BLOB data in a database respectively.When reading from the database,it first reads the directory structure BLOB data as a stream,and deserializes it to the directory structure object.With the information in the directory structure object,it can choose which file to access and ascertain its location and size in the folder's file BLOB data.It reads the corresponding data section out of the database and realize the random access of a file.
关 键 词:二进制大对象 文件夹 数据库 整体存储 随机访问
分 类 号:TP311.12[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.117.8.41