(
table: *const paimon_table,
)
| 72 | /// `table` must be a valid pointer from `paimon_catalog_get_table`, or null (returns error). |
| 73 | #[no_mangle] |
| 74 | pub unsafe extern "C" fn paimon_table_new_read_builder( |
| 75 | table: *const paimon_table, |
| 76 | ) -> paimon_result_read_builder { |
| 77 | if let Err(e) = check_non_null(table, "table") { |
| 78 | return paimon_result_read_builder { |
| 79 | read_builder: std::ptr::null_mut(), |
| 80 | error: e, |
| 81 | }; |
| 82 | } |
| 83 | let table_ref = &*((*table).inner as *const Table); |
| 84 | let state = ReadBuilderState { |
| 85 | table: table_ref.clone(), |
| 86 | projected_columns: None, |
| 87 | filter: None, |
| 88 | }; |
| 89 | paimon_result_read_builder { |
| 90 | read_builder: box_read_builder_state(state), |
| 91 | error: std::ptr::null_mut(), |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // ======================= ReadBuilder =============================== |
| 96 |
nothing calls this directly
no test coverage detected