摘要: 针对面向对象的XML数据,提出了2种存储模型。在分布式存储中,对象的一个属性或元素,如果是从超类继承的,其属性值或元素值存放在超类对应的对象中,如果是该类新定义的属性或元素,则放在该类对应的对象中。在该集中式存储中,对象的所有属性值都存放在所属类的对应对象中,超类中没有子类实例的数据,只有直接实例数据。通过典型查询语句,测试、分析了2种存储模型的性能,实验结果表明两种存储模型的可行性和高效性。
关键词:
面向对象的XML,
分布式存储模型,
集中式存储模型
Abstract: This paper proposes centralized and distributed storage models for object-oriented XML. As for distributed storage model, an attribute or element inherited from superclass resides in object of superclass, an attribute or element defined oneself resides in its own object. As for centralized storage model, all attributes and elements reside in their own object, there is not any subclass instance but direct instance in superclass object. The storability of the two models is analyzed by some typical queries. The experimental results show that they are effective and feasible.
Key words:
object-oriented XML,
distributed storage model,
centralized storage model
中图分类号:
张晓琳;丁 红;谭跃生;王国仁. 基于面向对象XML的集中式和分布式存储模型[J]. 计算机工程, 2007, 33(15): 58-60.
ZHANG Xiao-lin; DING Hong; TAN Yue-sheng; WANG Guo-ren. Centralized and Distributed Storage Model Based on Object-oriented XML[J]. Computer Engineering, 2007, 33(15): 58-60.