Comparable types
The following types are comparable, and the operators <, >, <=, >=, =, or != can be used to compare two values of one of these types if both are the same type:
boolean decimal float integer string context dictionary if it contains items that are a comparable type
event if it contains only comparable types
location sequence if it contains items that are a comparable type
optional if it contains a comparable type
any if it contains items that are a comparable type
com.apama.exceptions.Exception com.apama.exceptions.StackTraceElement The correlator cannot compare the following types of items:
action chunk dictionary if it contains items that are an incomparable type
event if it contains at least one incomparable type
listener sequence if it contains items that are an incomparable type
stream any if it contains items that are an incomparable type
Potentially cyclic types
For details about how the correlator compares items of a particular type, see the topic about that type.
In EPL code, you must use a comparable type in the following places:
As the key for a
dictionary. The type of the items in the
dictionary does not need to be comparable.
In a
sequence if you want to call the
indexOf() or
sort() method on that
sequence.
As a key in the following stream query clauses:
Equi-join
group by partition by with unique