Results of 1 - 1 of about 1 for withIntFunction (0.001 sec.)
- Write User Defined Functions 9414
- Overview The JDBC driver can register user-defined functions (UDFs) written in Java, including scalar functions and table functions. This page covers building and registering both, from the simple functional-interface overloads to the vecto
...ction(Supplier) , withFunction(Function) , and withFunction(BiFunction) take zero, one, or two boxed ( Object ) arguments. withIntFunction() , withLongFunction() , and withDoubleFunction() take a unary or binary operator over INTEGER , BIGINT , or DOUBLE and av...kdb:")) { DuckDBFunctions.scalarFunction() .withName("java_add_one") .withParameter(int.class) .withReturnType(int.class) .withIntFunction(x -> x + 1) .register(conn); } SELECT java_add_one(41); The binary overloads take two arguments of the same type, declared...nd the varargs form) receive null for a NULL input and may return null to produce a NULL result. The primitive callbacks ( withIntFunction() , withLongFunction() , and withDoubleFunction() ) are never handed a null . When DuckDB passes a NULL , the driver skips... - https://man.mtool.work/duckdb/2.0/clients/java/functions.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work