code wiki / _hdl_build / nx_seg_columnar.nx

nx_seg_columnar.nx

buildroot/runtime/_hdl_build/nx_seg_columnar.nx

1867 B39 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic seg
docsdependenciesstructsconstsfunctions

about

nx_seg_columnar.nx -- CAP-SEG-COLUMNAR: columnar layout + compression for analytic scans (Parquet/ORC-class). Instead of row records, values of one field are stored CONTIGUOUSLY (a column chunk), so an analytic scan reads just that column -- no row deserialization. Each column is compressed: RLE (col_rle) for runs, DICTIONARY (col_dict) for low-cardinality. Both are exactly invertible (lossless round-trip). A LIBRARY (no main -> run _gate). license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_seg_columnar.nx nx_seg_columnar_gate.nx

imports: nx_syscalls.nx

imported by: nx_seg_columnar_gate.nx

structs

none

consts

none

functions

9func col_rle_encode(vals: *i64, n: i64, out: *i64) -> i64
called by 1: main
20func col_rle_decode(pairs: *i64, np: i64, out: *i64) -> i64
called by 1: main
26func col_dict_encode(vals: *i64, n: i64, dict: *i64, ids: *i64) -> i64
called by 1: main
37func col_dict_decode(dict: *i64, ids: *i64, n: i64, out: *i64) -> i64
called by 1: main