WEX:流处理中窗口的形式化规范
WEX: Formal Specifications for Windows in Stream Processing
AI总结:
针对流处理窗口化现有方法的局限性,提出基于单子二阶逻辑的WEX形式化规范,可表达复杂逻辑触发窗口,通过符号自动机提供等效表示,并明确了重叠窗口数量检查的可判定性条件。
摘要:
处理无界数据流的关键操作是窗口化,它提取流的有限部分以进行进一步处理。现有框架和查询语言要么要求使用临时命令式语言定义窗口,要么局限于基本构造(如基于时间或计数的窗口)。我们提出窗口表达式(Window EXpression,WEX),一种基于单子二阶逻辑的形式化规范,用于精确表达窗口构造。WEX可自然表达滑动窗口、滚动窗口等传统窗口构造,以及起始和结束索引由给定逻辑条件满足情况触发的更复杂窗口。在引入基于字母表理论的带回溯符号自动机模型后,我们提出基于符号正则表达式的WEX等效表示。窗口化的精确语义支持对WEX的静态分析:总体而言,检查WEX是否允许无限数量重叠窗口是不可判定的,但当数据流基于有限字母表或字母表理论具有所谓的完成属性时,该问题可判定。
英文摘要:
A key operation in processing an unbounded data stream is windowing, which extracts finite portions of streams for further handling. The existing frameworks and query languages either require windows to be defined using ad hoc imperative languages or are limited to rudimentary constructs such as time- or count-based windows. We propose Window EXpression, a formal specification for precisely expressing windowing constructs based on monadic second-order logic. WEX can naturally express traditional windowing constructs such as sliding windows and tumbling windows, as well as more complex windows whose start and end indices are triggered based on the satisfaction of given logical conditions. After introducing a model of symbolic automata with lookbacks over an alphabet theory, we present another equivalent representation of WEX based on symbolic regular expressions. The precise semantics of windowing enable static analysis over WEX. In particular, we show that, in general, it is undecidable to check whether a WEX allows an unbounded number of overlapping windows. However, when the data stream is over a finite alphabet, or the alphabet theory has the so-called completion property, the problem becomes decidable.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。