Optional Apache Arrow C Data interface helpers for DuckDB JDBC.
Optional Apache Arrow C Data interface helpers for DuckDB JDBC.
(arrow-export con query allocator)(arrow-export con query allocator batch-size)Runs query and returns a closeable ArrowReader backed by allocator.
query is a next.jdbc SQL/parameter vector or a SQL string. JDBC statement and result-set resources are closed before this function returns. The caller owns both the returned reader and allocator and must close the reader first.
Runs query and returns a closeable ArrowReader backed by allocator. query is a next.jdbc SQL/parameter vector or a SQL string. JDBC statement and result-set resources are closed before this function returns. The caller owns both the returned reader and allocator and must close the reader first.
(register-arrow! con table stream)(register-arrow! con table allocator reader)Registers an Arrow C Data stream as table-name and returns its lifetime handle.
Keep the returned ArrowArrayStream open, along with its allocator and source ArrowReader, until DuckDB has finished the query that consumes the replacement scan. Closing any of them early invalidates the zero-copy C Data buffers.
The four-argument form creates and exports an ArrowArrayStream from reader. It closes the stream if export or registration fails. The three-argument form registers an existing stream whose lifetime remains the caller's responsibility.
Registers an Arrow C Data stream as table-name and returns its lifetime handle. Keep the returned ArrowArrayStream open, along with its allocator and source ArrowReader, until DuckDB has finished the query that consumes the replacement scan. Closing any of them early invalidates the zero-copy C Data buffers. The four-argument form creates and exports an ArrowArrayStream from reader. It closes the stream if export or registration fails. The three-argument form registers an existing stream whose lifetime remains the caller's responsibility.
(with-arrow-reader con query allocator f)(with-arrow-reader con query allocator batch-size f)Calls f with an ArrowReader for query and always closes the reader afterward.
The caller owns allocator and must keep it open for the duration of f.
Calls f with an ArrowReader for query and always closes the reader afterward. The caller owns allocator and must keep it open for the duration of f.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |