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.StackTraceElementThe 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
![*](chapterTOC_bullet.png)
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:
![*](chapterTOC_bullet.png)
As the key for a
dictionary. The type of the items in the
dictionary does not need to be comparable.
![*](chapterTOC_bullet.png)
In a
sequence if you want to call the
indexOf() or
sort() method on that
sequence.
![*](chapterTOC_bullet.png)
As a key in the following stream query clauses:
![*](chapterTOC_bullet.png)
Equi-join
group by
partition by
with unique