code wiki / _hdl_build / nx_dp_tsv_migrate.nx

nx_dp_tsv_migrate.nx

buildroot/runtime/_hdl_build/nx_dp_tsv_migrate.nx

3197 B69 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind tooltopic dp
docsdependenciesstructsconstsfunctions

about

nx_dp_tsv_migrate.nx -- ONE-TIME migration OFF the flat tsv: nx_dp_tsv_migrate <src.tsv> <domain> Reads a legacy id<TAB>text search-source tsv ONCE and writes each doc into the domain's PUBLIC sovereign seg_store shard (dp-<domain>-pub-, key doc:<cid>, .terms built by ss_write_seg) via RAW ss_add -- NOT dp_ingest, so NO new tsv is emitted. After this runs the tsv is legacy/removable and dss_search queries the store directly. This retires the tsv the operator flagged (2026-07-02), migrating its content INTO the nishi ecosystem. ORIGINAL

dependencies 1 imports · 0 importers

nx_docportal_search_seg.nx nx_dp_tsv_migrate.nx

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

main m_puts ss_readall sys_openat_rd sys_lseek sys_mmap sys_read sys_close dss_prefix ss_begin ss_begin_cap sys_mmap ↻ mg_hash dss_mkkey ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close ↻ sys_fsync sys_renameat

structs

none

consts

7const K_MAGIC_1125899906842597: i64 = 1125899906842597

functions

9func m_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
10func m_num(v: i64) -> i64
called by 1: main
20func mg_hash(s: *u8, n: i64) -> i64
called by 1: main
28func main(argc: i64, argv: *i64) -> i64