作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (22): 49-51. doi: 10.3969/j.issn.1000-3428.2010.22.017

• 软件技术与数据库 • 上一篇    下一篇

基于扩展区间编码的XML结构连接算法

朱晓娟   

  1. (安徽理工大学计算机科学与工程学院,安徽 淮南 232001)
  • 出版日期:2010-11-20 发布日期:2010-11-18
  • 作者简介:朱晓娟(1978-),讲师、硕士,主研方向:Web数据集成,移动数据管理
  • 基金资助:
    安徽省教育厅高校省级自然科学基金资助项目(KJ2008 B108)

XML Structural Join Algorithm Based on Extended Region Coding

ZHU Xiao-juan   

  1. (College of Computer Science and Engineering, Anhui University of Science and Technology, Huainan 232001, China)
  • Online:2010-11-20 Published:2010-11-18

摘要: 结构连接的效率直接影响XML查询的性能。经典的Anc-Des-B+算法在判断双亲/孩子关系时跳过双亲节点的后裔(非孩子)节点的能力不强。为此,基于区间编码的思想提出一种改进的编码方法,把每个节点译码为六元组,并增加双亲节点的信息。给出的ZParent算法可以跳过孩子列表中所有不参与连接的元素节点,只需要扫描一次列表P和列表C,即可实现基于该编码的结构连接计算。实验结果表明,该方法具有较好的时间性能。

关键词: XML查询, 扩展区间编码, B+树索引, 结构连接

Abstract: The efficiency of structural join directly influences the function of the XML query. The classical Anc-Des-B+algorithm’s ability of skipping the descendant codes(not child) is not effective when judging the parent/child relationships. Based on the idea of extended region coding, this paper puts forward a kind of improved method which codes every node into a group of 6 elements including the parent’s information. It also puts forward the ZParent algorithm which can skip all nodes that don’t participate in join and can carry out join calculation with only one time to scan the P list and C list. Experimental result shows that the method has better time function.

Key words: XML query, extended region coding, B+ tree index, structural join

中图分类号: