MCPcopy Create free account
hub / github.com/apache/paimon-rust / paimon_table_new_read_builder

Function paimon_table_new_read_builder

bindings/c/src/table.rs:74–93  ·  view source on GitHub ↗
(
    table: *const paimon_table,
)

Source from the content-addressed store, hash-verified

72/// `table` must be a valid pointer from `paimon_catalog_get_table`, or null (returns error).
73#[no_mangle]
74pub 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

Callers

nothing calls this directly

Calls 2

check_non_nullFunction · 0.85
box_read_builder_stateFunction · 0.85

Tested by

no test coverage detected