arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1311.6570cs.DB
收藏

Forest Transducers的XQuery流

XQuery Streaming by Forest Transducers

Shizuya Hakuta, Sebastian Maneth, Keisuke Nakano, Hideya Iwasaki

摘要:

XML转换的流式传输是一项具有挑战性的任务,只有很少的系统支持流式传输。研究方法通常定义适于流的XQuery和XQuery的自定义片段,然后为每个片段设计自定义算法。这些语言有几个缺点。在这里,我们采用一种更原则性的方法来处理基于XQuery的转换流的问题。我们从一个优雅的传感器模型开始,许多静态分析问题都很好地理解:宏森林传感器(MFT)。我们表明,一个大的片段的XQuery可以被翻译成MFTs -事实上,一个片段的XQuery,可以表达的重要功能,从其他的XQuery流引擎,如GCX:我们的片段的XQuery支持的谓词和let语句。然后,我们依赖于MFT的流执行引擎,该引擎使用来自函数式编程的一组有充分依据的优化,例如严格性分析和森林砍伐。我们的原型实现的时间和内存效率相媲美的最快的已知引擎的XQuery流,GCX。这是令人惊讶的,因为我们的引擎依赖于OCaml内置的垃圾收集器,并且不使用任何专门的缓冲区管理,而GCX的效率是由于巧妙和明确的缓冲区管理。

英文摘要:

Streaming of XML transformations is a challenging task and only very few systems support streaming. Research approaches generally define custom fragments of XQuery and XPath that are amenable to streaming, and then design custom algorithms for each fragment. These languages have several shortcomings. Here we take a more principles approach to the problem of streaming XQuery-based transformations. We start with an elegant transducer model for which many static analysis problems are well-understood: the Macro Forest Transducer (MFT). We show that a large fragment of XQuery can be translated into MFTs --- indeed, a fragment of XQuery, that can express important features that are missing from other XQuery stream engines, such as GCX: our fragment of XQuery supports XPath predicates and let-statements. We then rely on a streaming execution engine for MFTs, one which uses a well-founded set of optimizations from functional programming, such as strictness analysis and deforestation. Our prototype achieves time and memory efficiency comparable to the fastest known engine for XQuery streaming, GCX. This is surprising because our engine relies on the OCaml built in garbage collector and does not use any specialized buffer management, while GCX's efficiency is due to clever and explicit buffer management.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑