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

Function paimon_plan_num_splits

bindings/c/src/table.rs:334–340  ·  view source on GitHub ↗
(plan: *const paimon_plan)

Source from the content-addressed store, hash-verified

332/// `plan` must be a valid pointer from `paimon_table_scan_plan`, or null (returns 0).
333#[no_mangle]
334pub unsafe extern "C" fn paimon_plan_num_splits(plan: *const paimon_plan) -> usize {
335 if plan.is_null() {
336 return 0;
337 }
338 let plan_ref = &*((*plan).inner as *const Plan);
339 plan_ref.splits().len()
340}
341
342// ======================= TableRead ===============================
343

Callers

nothing calls this directly

Calls 3

is_nullMethod · 0.80
splitsMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected