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

计算机工程 ›› 2006, Vol. 32 ›› Issue (13): 58-60. doi: 10.3969/j.issn.1000-3428.2006.13.021

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

带谓词的XPath查询的即时处理

吴 年1,2;张 昱1,2

  

  1. 1. 中国科学技术大学计算机科学技术系,合肥 230027;2. 中国科学院计算机科学重点实验室,北京 100080)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-07-05 发布日期:2006-07-05

Immediate Processing of XPath Query with Predicates

WU Nian1,2;ZHANG Yu1,2   

  1. 1. Department of Computer Science & Technology, University of Science & Technology of China, Hefei 230027; 2. Key Lab of Computer Science, Chinese Academy of Sciences, Beijing 100080
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-07-05 Published:2006-07-05

摘要: 介绍了一种立即计算谓词并即时输出的XML流数据查询系统XSIEQ。XSIEQ采用修改了的下推自动机技术,对多个XPath式按前缀共享的方式构造NFA,并对NFA状态进行类型标记和添加索引;从而在运行时能快速确定谓词计算和数据缓存等动作的时机,实现了即时处理;最后给出了XSIEQ和YFilter的查询性能对比及分析。

关键词: XML流, 谓词计算, 下推自动机

Abstract: XSIEQ(XML stream query with immediate evaluation), a kind of XML stream query system, can evaluate predicates immediately and output in time. The design and implementation of XSIEQ are presented. XSIEQ uses a modified pushdown automata technique, and its idea is to convert all XPath expressions into a single NFA, then to attach type label and corresponding index info on NFA state. Accordingly, XSIEQ can quickly decide the opportunity of predicate evaluation and data cache in runtime, and implement immediate processing. In the end, the query performance comparison between XSIEQ and YFilter is given and analyzed.

Key words: XML stream, Predicate evaluation, Push down automata(PDA)

中图分类号: