code wiki / _hdl_build / nx_shard_compact.nx
nx_shard_compact.nx
buildroot/runtime/_hdl_build/nx_shard_compact.nx
about
nx_shard_compact.nx -- fold a domain's PUBLIC shard to ONE segment via the store's own cap-aware
compaction (ss_compact_cap: data-driven writer, fail-before-swap crash-safe). This is ALSO the
positions-sidecar UPGRADE for pre-phrase shards: the merged segment is rebuilt through ss_write_seg,
which now emits seg-<id>.pos -- quoted phrases go EXACT after one compaction.
usage: nx_shard_compact <domain>
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_docportal_search_seg.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 8 | const K_MAGIC_4096: i64 = 4096 |
functions
| 10 | func sc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } called by 1: main |
| 11 | func sc_num(v: i64) -> i64 called by 1: main |
| 21 | func main(argc: i64, argv: *i64) -> i64 |