code wiki / _hdl_build / nx_seg_columnar.nx
nx_seg_columnar.nx
buildroot/runtime/_hdl_build/nx_seg_columnar.nx
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
imports: nx_syscalls.nx
imported by: nx_seg_columnar_gate.nx
structs
| none |
consts
| none |
functions
| 9 | func col_rle_encode(vals: *i64, n: i64, out: *i64) -> i64 called by 1: main |
| 20 | func col_rle_decode(pairs: *i64, np: i64, out: *i64) -> i64 called by 1: main |
| 26 | func col_dict_encode(vals: *i64, n: i64, dict: *i64, ids: *i64) -> i64 called by 1: main |
| 37 | func col_dict_decode(dict: *i64, ids: *i64, n: i64, out: *i64) -> i64 called by 1: main |