没有合适的资源?快使用搜索试试~ 我知道了~
esper参考手册esper_reference.pdf
5星 · 超过95%的资源 需积分: 50 27 下载量 112 浏览量
2014-07-08
15:31:39
上传
评论 1
收藏 2.88MB PDF 举报
温馨提示
试读
734页
Esper是EsperTech公司使用Java开发的事件流处理(ESP:Event Stream Processing)和复杂事件处理(CEP:Complex Event Processing)引擎。
资源推荐
资源详情
资源评论
iii
Preface ........................................................................................................................... xxi
1. Technology Overview .................................................................................................. 1
1.1. Introduction to CEP and event series analysis ...................................................... 1
1.2. CEP and relational databases ............................................................................. 1
1.3. The Esper engine for CEP .................................................................................. 2
1.4. Required 3rd Party Libraries ................................................................................ 2
2. Event Representations ................................................................................................ 3
2.1. Event Underlying Java Objects ............................................................................ 3
2.2. Event Properties ................................................................................................. 4
2.2.1. Escape Characters ................................................................................... 5
2.2.2. Expression as Key or Index Value ............................................................ 6
2.3. Dynamic Event Properties ................................................................................... 7
2.4. Fragment and Fragment Type ............................................................................. 9
2.5. Plain-Old Java Object Events .............................................................................. 9
2.5.1. Java Object Event Properties .................................................................. 10
2.5.2. Property Names ..................................................................................... 11
2.5.3. Parameterized Types .............................................................................. 12
2.5.4. Setter Methods for Indexed and Mapped Properties .................................. 12
2.5.5. Known Limitations .................................................................................. 13
2.6. java.util.Map Events .......................................................................................... 13
2.6.1. Overview ............................................................................................... 13
2.6.2. Map Properties ...................................................................................... 14
2.6.3. Map Supertypes ..................................................................................... 15
2.6.4. Advanced Map Property Types ............................................................... 16
2.7. Object-array (Object[]) Events ............................................................................ 18
2.7.1. Overview ............................................................................................... 18
2.7.2. Object-Array Properties .......................................................................... 19
2.7.3. Object-Array Supertype .......................................................................... 20
2.7.4. Advanced Object-Array Property Types ................................................... 21
2.8. org.w3c.dom.Node XML Events ......................................................................... 23
2.8.1. Schema-Provided XML Events ................................................................ 25
2.8.2. No-Schema-Provided XML Events ........................................................... 30
2.8.3. Explicitly-Configured Properties ............................................................... 30
2.9. Additional Event Representations ....................................................................... 32
2.10. Updating, Merging and Versioning Events ........................................................ 33
2.11. Coarse-Grained Events ................................................................................... 33
2.12. Event Objects Instantiated and Populated by Insert Into ..................................... 34
2.13. Comparing Event Representations ................................................................... 35
3. Processing Model ...................................................................................................... 37
3.1. Introduction ....................................................................................................... 37
3.2. Insert Stream .................................................................................................... 37
3.3. Insert and Remove Stream ................................................................................ 38
3.4. Filters and Where-clauses ................................................................................. 40
3.5. Time Windows .................................................................................................. 42
Esper Reference
iv
3.5.1. Time Window ......................................................................................... 42
3.5.2. Time Batch ............................................................................................ 43
3.6. Batch Windows ................................................................................................. 44
3.7. Aggregation and Grouping ................................................................................. 45
3.7.1. Insert and Remove Stream ..................................................................... 45
3.7.2. Output for Aggregation and Group-By ...................................................... 46
3.8. Event Visibility and Current Time ....................................................................... 48
4. Context and Context Partitions ................................................................................. 49
4.1. Introduction ....................................................................................................... 49
4.2. Context Declaration ........................................................................................... 50
4.2.1. Context-Provided Properties ................................................................... 51
4.2.2. Keyed Segmented Context ..................................................................... 51
4.2.3. Hash Segmented Context ....................................................................... 56
4.2.4. Category Segmented Context ................................................................. 59
4.2.5. Non-Overlapping Context ........................................................................ 61
4.2.6. Overlapping Context ............................................................................... 63
4.2.7. Context Conditions ................................................................................. 66
4.3. Context Nesting ................................................................................................ 69
4.3.1. Built-In Nested Context Properties ........................................................... 71
4.4. Partitioning Without Context Declaration ............................................................. 72
4.5. Output When Context Partition Ends .................................................................. 72
4.6. Context and Named Window ............................................................................. 74
4.7. Operations on Specific Context Partitions ........................................................... 76
5. EPL Reference: Clauses ............................................................................................ 77
5.1. EPL Introduction ............................................................................................... 77
5.2. EPL Syntax ...................................................................................................... 78
5.2.1. Specifying Time Periods ......................................................................... 79
5.2.2. Using Comments .................................................................................... 79
5.2.3. Reserved Keywords ............................................................................... 80
5.2.4. Escaping Strings .................................................................................... 81
5.2.5. Data Types ............................................................................................ 81
5.2.6. Using Constants and Enum Types .......................................................... 84
5.2.7. Annotation ............................................................................................. 85
5.2.8. Expression Declaration ........................................................................... 90
5.2.9. Script Declaration ................................................................................... 92
5.2.10. Referring to a Context .......................................................................... 92
5.3. Choosing Event Properties And Events: the Select Clause .................................. 93
5.3.1. Choosing all event properties: select * ..................................................... 93
5.3.2. Choosing specific event properties .......................................................... 94
5.3.3. Expressions ........................................................................................... 95
5.3.4. Renaming event properties ..................................................................... 95
5.3.5. Choosing event properties and events in a join ........................................ 95
5.3.6. Choosing event properties and events from a pattern ............................... 97
5.3.7. Selecting insert and remove stream events .............................................. 98
v
5.3.8. Qualifying property names and stream names .......................................... 98
5.3.9. Select Distinct ........................................................................................ 99
5.3.10. Transposing an Expression Result to a Stream ..................................... 100
5.3.11. Selecting EventBean instead of Underlying Event ................................. 100
5.4. Specifying Event Streams: the From Clause ..................................................... 101
5.4.1. Filter-based Event Streams ................................................................... 101
5.4.2. Pattern-based Event Streams ................................................................ 105
5.4.3. Specifying Views .................................................................................. 106
5.4.4. Multiple Data Window Views ................................................................. 107
5.4.5. Using the Stream Name ....................................................................... 108
5.5. Specifying Search Conditions: the Where Clause .............................................. 110
5.6. Aggregates and grouping: the Group-by Clause and the Having Clause .............. 110
5.6.1. Using aggregate functions ..................................................................... 110
5.6.2. Organizing statement results into groups: the Group-by clause ................ 111
5.6.3. Selecting groups of events: the Having clause ........................................ 114
5.6.4. How the stream filter, Where, Group By and Having clauses interact ........ 115
5.6.5. Comparing Keyed Segmented Context, the Group By clause and the
std:groupwin view .......................................................................................... 116
5.7. Stabilizing and Controlling Output: the Output Clause ........................................ 117
5.7.1. Output Clause Options ......................................................................... 117
5.7.2. Aggregation, Group By, Having and Output clause interaction .................. 123
5.7.3. Runtime Considerations ........................................................................ 124
5.8. Sorting Output: the Order By Clause ................................................................ 124
5.9. Limiting Row Count: the Limit Clause ............................................................... 125
5.10. Merging Streams and Continuous Insertion: the Insert Into Clause .................... 126
5.10.1. Transposing a Property To a Stream ................................................... 128
5.10.2. Merging Streams By Event Type ......................................................... 129
5.10.3. Merging Disparate Types of Events: Variant Streams ............................ 130
5.10.4. Decorated Events ............................................................................... 131
5.10.5. Event as a Property ............................................................................ 131
5.10.6. Instantiating and Populating an Underlying Event Object ....................... 132
5.10.7. Transposing an Expression Result ....................................................... 132
5.10.8. Select-Clause Expression And Inserted-Into Column Event Type ............ 132
5.11. Subqueries .................................................................................................... 133
5.11.1. The 'exists' Keyword ........................................................................... 136
5.11.2. The 'in' and 'not in' Keywords .............................................................. 137
5.11.3. The 'any' and 'some' Keywords ........................................................... 137
5.11.4. The 'all' Keyword ................................................................................ 138
5.11.5. Subquery With Group By Clause ......................................................... 139
5.11.6. Multi-Column Selection ....................................................................... 139
5.11.7. Multi-Row Selection ............................................................................ 140
5.11.8. Hints Related to Subqueries ................................................................ 141
5.12. Joining Event Streams ................................................................................... 142
5.12.1. Introducing Joins ................................................................................ 142
剩余733页未读,继续阅读
资源评论
- Wilson_Peng2019-05-20给朋友下的,很不错很不错
eruan
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Python的PCA人脸识别算法的原理及实现代码详解+源码+详细代码解析+开发文档+数据(毕业设计&课程设计&项目开发)
- Decision tree20240105(1).ipynb
- zuoyezuoyezuoye
- zuoyezuoyezuoye
- 机械设计电机转子装配设备sw22非常好的设计图纸100%好用.zip
- 作业作业作业作业作业作业
- xdotool.c
- RLMD鲁棒性局部均值分解信号分量可视化(Matlab完整源码和数据)
- Screenshot_2024-04-26-17-17-26-36_9d26c6446fd7bb8e41d99b6262b17def.jpg
- 6.0版本超广角文件+教程使用MT管理器打-7.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功