⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 2.0 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 1 of about 1 for withDoubleFunction (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 ... d 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 avoid boxing. import java.sql.Connection; import j ... scalarFunction() .withName("java_weighted_sum") .withParameters(double.class, double.class) .withReturnType(double.class) .withDoubleFunction((x, w) -> x * w + 10.0) .register(conn); SELECT java_weighted_sum(2.5, 4.0); Variadic Arguments For a variable number of a ... 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 the Java call and writes NULL to the output aut ...
https://man.mtool.work/duckdb/2.0/clients/java/functions.html
PREV 1 NEXT
DuckDB 2.0 Documentation / man.mtool.work