Esper系列(十四)Contained-Event Selection
来源:互联网 发布:spss信度分析 输入数据 编辑:程序博客网 时间:2024/05/21 11:19
格式:
说明:
该语法的重点在于contained_expression,这个表达式需要返回事件的属性,该属性可以是另一个事件也可以是普通数据类型,也可以是一组查询结果,比如一个数组,一个集合等等;
示例:
文件名:orderEvent.java
文件名:orderArray
文件名: orderBean.java
文件名: orderItem.java
文件名: orderMainTest(程序入口)
说明:
1、epl执行语句为 select * from orderEvent[orderAry.orderBeans] 表示查询orderEvent事件中orderAry事件属性字段中的orderBeans 事件,因为orderEvent与orderAry、orderAry与orderBeans都是有一种嵌套关系,就像类中有类一样是具有层次的;
2、epl执行语句为 select * from orderEvent[orderAry.orderBeans][bean] 表示只查询orderItem事件信息(bean为orderItem类型), 因为orderAry.orderBeans返回的是orderBean类型的数组,而orderItem又是orderBean的属性成员(bean与orderAry.orderBeans不在一个层面上),所以[orderAry.orderBeans][bean]表示的返回orderItem事件;
3、返回结果的数据格式,由各事件类的toString函数定义;
4、Contained-Event在join查询中,如果事件来自于named window,那么连接操作就必须加上unidirectional关键字,作用为每次连接操作的结果都独立起来;
示例:
说明:
Join4中当发送两个同样的mediaOrder对象,聚合函数count是要累加,而join5不会;
- Esper系列(十四)Contained-Event Selection
- Esper系列(一)初探
- Esper系列(四)Output
- Esper学习之十四:Pattern(一)
- Event Blocks for Selection Screens
- Esper
- Esper
- esper
- Esper系列(三)Context和Group by
- Esper系列(八)Method Definition、Schema
- Esper系列(十二)Variables and Constants
- Esper系列(十三)Splitting and Duplicating Streams
- PRML系列:1.3 Model Selection
- Esper系列(九)NamedWindow语法create、Insert、select
- Esper系列(十)NamedWindow语法delete、Select+Delete、Update
- Esper系列(十一)NamedWindow语法Merge、Queries、Indexing、Dropping
- HTML <input type='file'> File Selection Event
- Qt学习之十四:event() 与eventFilter()
- Esper系列(十)NamedWindow语法delete、Select+Delete、Update
- Esper系列(十一)NamedWindow语法Merge、Queries、Indexing、Dropping
- Esper系列(十二)Variables and Constants
- GH Bladed 软件使用学习笔记(2)
- Esper系列(十三)Splitting and Duplicating Streams
- Esper系列(十四)Contained-Event Selection
- Android源码解析Handler系列第(一)篇 --- Message全局池
- Docker系列(六)路由打通网络示例
- 【Java】interrupt、interrupted和isInterrupted的区别
- Docker系列(七)Shipyard安装及介绍
- KNN算法R实现
- 如何修改tomcat项目的图标
- Docker系列(八)Kubernetes介绍
- lucene创建索引