As noted above, an external method must use parameters and a return value whose types are compatible with Connect CDC. The table below lists the compatible Java datatypes that can be used for an input parameter or a return value.
Connect CDC expression datatype |
Compatible Java datatype |
---|---|
character |
String |
integer |
short, int, long |
double |
float, double |
decimal |
BigDecimal |
boolean |
boolean |
In the previous examples, the input parameter and return value types for the sqrt and pow methods are all double, so the datatypes used in these methods are compatible with the Expression Handler.