返回
Esper Document - Chapter 2 Basic Concepts
见解分享
2024-01-06 12:31:41
Introduction
Esper statements are continuous queries used to analyze events and time, and detect situations. You interact with Esper by compiling and deploying modules containing statements, by sending events and advancing time, and by receiving output or polling current results through callbacks.
Table 2.1. Event classes in Esper
Class | Description |
---|---|
Event | The base class for all events. |
ObjectEvent | An event that contains a Java object. |
MapEvent | An event that contains a map. |
ArrayEvent | An event that contains an array. |
StringEvent | An event that contains a string. |
NumberEvent | An event that contains a number. |
BooleanEvent | An event that contains a boolean. |
DateEvent | An event that contains a date. |
TimestampEvent | An event that contains a timestamp. |
Figure 2.1. Event classes in Esper
Statements can be partitioned. Partitioned statements can have multiple partitions. For example, you could have one partition for each room in a building...
**