Results of 1 - 1 of about 1 for DuckDBChunkedResult (0.000 sec.)
- Handle Results 9414
- Overview Beyond the standard JDBC ResultSet , the DuckDB driver can hand results to Apache Arrow , stream large results instead of materializing them, and expose raw columnar data chunks. This page covers each of these result-handling optio
...Results The JDBC driver can return a query result as a lazily fetched sequence of columnar data chunks via the org.duckdb.DuckDBChunkedResult class. This exposes the C API's duckdb_fetch_chunk function to Java and avoids the per-row overhead required by the JDBC R...e DuckDBDataChunkReader API that is used by user-defined functions . Call query() on a DuckDBPreparedStatement to obtain a DuckDBChunkedResult , then advance through the chunks with nextChunk() and read each column vector by index. Example: import java.sql.DriverMa...nager; import org.duckdb.DuckDBConnection; import org.duckdb.DuckDBPreparedStatement; import org.duckdb.DuckDBChunkedResult; import org.duckdb.DuckDBDataChunkReader; import org.duckdb.DuckDBReadableVector; try (DuckDBConnection conn = DriverManag... - https://man.mtool.work/duckdb/2.0/clients/java/result_handling.html
PREV
1
NEXT
DuckDB 2.0 Documentation / man.mtool.work