It's a simple demo for udf using in iotdb.
You can get a jar named iotdb-udf-demo-1.3.1-SNAPSHOT-jar-with-dependencies.jar
under ./target/
mvn clean package -pl . -Pget-jar-with-dependencies
- put the jar under
ext/udf
- execute the following command in
cli
CREATE FUNCTION two_sum AS 'org.apache.iotdb.udf.demo.TwoSum';
- execute
show functions
incli
, you can seetwo_sum
in the functions list.