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 functionsincli, you can seetwo_sumin the functions list.