public class EsperTrimmedStatementSubscriber extends EsperStatementSubscriber
Removes the '`' characters from the keys as being output by Esper. This class
hence allows an efficient default implementation and applied this expensive
String operation only when explicitly required for a
Query.
KEY_STREAM| Constructor and Description |
|---|
EsperTrimmedStatementSubscriber(List<stream.io.Sink> sinksList,
String[] keys)
Create a new subscriber with the specified keys writing to the specified
Sink. |
| Modifier and Type | Method and Description |
|---|---|
void |
update(Map<String,Serializable> values)
For including special characters, Esper requires names of keys to be
surrounded by '`'.
|
update, writepublic void update(Map<String,Serializable> values) throws Exception
For including special characters, Esper requires names of keys to be surrounded by '`'. For example, the key myDataItem:timestamp would have to be expressed as `myDataItem:timestamp`. Since the streams framework requires no such action, we have to remove these characters before sending the output of the Esper engine to the Streams framework.
update in class EsperStatementSubscribervalues - the values of an Esper event.ExceptionCopyright © 2013-2017 University of Dortmund. All Rights Reserved.