首页> 外文期刊>Information Systems >Holistic Join for Generalized Tree Patterns
【24h】

Holistic Join for Generalized Tree Patterns

机译:整体联接的广义树型

获取原文
获取原文并翻译 | 示例
       

摘要

We consider the problem of evaluating an XQuery query Q (involving only child and descendant axes) on an XML document D. D is stored on a disk and is read from there, in document order. Chen et al. [From Tree Patterns to Generalized Tree Patterns: on efficient evaluation of XQuery, Proceedings of International Conference on Very Large Data Bases (VLDB), 2003, pp. 237-248] presented an algorithm to convert Q (from a large fragment of XQuery) into a Generalized Tree Pattern GTP(Q), and a set J(Q) of value join conditions on its vertices. Evaluating Q on D reduces to finding the matches for GTP(Q) in D. We present an efficient algorithm for finding these matches. Excluding the computation of the value joins J(Q), our algorithm performs two linear passes over the data, and runs in O(d∣Q∣) memory space, where d denotes the depth of D; runtime and disk I/O are O(∣Q∣∣D∣). If separate input streams of document nodes for the individual vertices in GTP(Q) are available, our runtime and disk I/O are linear in the input size; this runtime and disk I/O are trivially optimal.
机译:我们考虑评估XML文档D上的XQuery查询Q(仅涉及子轴和后代轴)的问题。D存储在磁盘上,并按文件顺序从那里读取。 Chen等。 [从树模式到广义树模式:关于XQuery的有效评估,国际超大型数据库会议(VLDB),2003年,第237-248页]提出了一种转换Q(从XQuery的较大片段开始)的算法变为广义树模式GTP(Q),并且在其顶点上具有值连接条件的集合J(Q)。在D上评估Q简化为在D中找到GTP(Q)的匹配项。我们提出了一种用于找到这些匹配项的有效算法。除了计算连接值J(Q)之外,我们的算法对数据执行了两次线性传递,并在O(d∣Q∣)存储空间中运行,其中d表示D的深度;运行时和磁盘I / O为O(∣Q∣∣D∣)。如果对于GTP(Q)中的各个顶点有单独的文档节点输入流可用,则我们的运行时和磁盘I / O的输入大小是线性的;此运行时和磁盘I / O几乎是最佳的。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号