code wiki / _hdl_build / nx_query.nx
nx_query.nx
buildroot/runtime/_hdl_build/nx_query.nx
about
nx_query.nx -- the sovereign QUERY EXECUTOR over a dataset (the "SELECT agg(col) WHERE col op val GROUP BY
col" engine, structured-params form -- a string/typed-syntax parser is the thin front-end follow-on). This
is what makes the analytics QUERYABLE instead of called function-by-function. Composes nx_dataframe
(filter + groupby + reductions). Integer-exact. Works on in-memory columns OR seg_store-loaded columns
(via nx_analyst_store). license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_dataframe.nx
imported by: nx_query_gate.nx
structs
| none |
consts
| 10 | const Q_COUNT: i64 = 0 |
| 11 | const Q_SUM: i64 = 1 |
| 12 | const Q_AVG: i64 = 2 |
| 13 | const Q_MIN: i64 = 3 |
| 14 | const Q_MAX: i64 = 4 |
| 16 | const Q_ALL: i64 = 5 |
functions
| 18 | func q_match(v: i64, op: i64, thr: i64) -> i64 |
| 30 | func q_scalar(agg_col: *i64, filter_col: *i64, n: i64, filter_op: i64, filter_thr: i64, agg_kind: i64) -> i64 |
| 59 | func q_grouped(agg_col: *i64, filter_col: *i64, group_col: *i64, n: i64, filter_op: i64, filter_thr: i64, agg_kind: i64, out_keys: *i64, out_agg: *i64, out_cnt: *i64, max_groups: i64) -> i64 |
| 101 | func q_kind_str(k: i64) -> *u8 |