code wiki / (root) / nx_temporal_index.nx

nx_temporal_index.nx

buildroot/runtime/nx_temporal_index.nx

1941 B48 linesdepth 2pulls 2 transitivereach 5 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_temporal_index.nx -- LIB: the (host,path)->[(date,capture)] temporal index = the "browse day-by-day" backbone. Given parallel capture arrays (keys = host+path string pointers, dates = YYYYMMDD ints), ti_query returns the capture AS IT EXISTED on a target date: the most-recent capture at-or-before the target (the Wayback "as-of" semantics), else the earliest available capture for that key. Exact key match (no prefix bleed). Pure/in-memory for this gate; seg_store persistence + WARC-Date(ISO8601)->YYYYMMDD parsing + R2 record-feed compose in a follow-on. license_tier: ORIGINAL

dependencies 1 imports · 5 importers

nx_syscalls.nx nx_temporal_index.nx nx_archive_capture_demo.nx nx_archive_media_fetch.nx nx_archive_viewer.nx nx_cdx_parse_gate.nx nx_temporal_index_gate.nx

imports: nx_syscalls.nx

imported by: nx_archive_capture_demo.nxnx_archive_media_fetch.nxnx_archive_viewer.nxnx_cdx_parse_gate.nxnx_temporal_index_gate.nx

structs

none

consts

none

functions

10func ti_keq(a: *u8, b: *u8) -> i64
called by 1: ti_query
24func ti_query(keyptrs: *i64, dates: *i64, count: i64, qkey: *u8, qdate: i64) -> i64
called by 3: mainrewrite_rendermain calls 1: ti_keq
48func main() -> i64 { return 0 }