Commit 2c03a7a
committed
feat(array): add sparse N-dimensional array engine
Introduces a bi-temporal sparse array engine backed by the nodedb-array
crate. Coordinates and payloads are arbitrary-dimensional; valid-time
bounds are carried per-cell and system-time history is preserved so
point-in-time reads and slice queries work at any past timestamp.
Core library (nodedb-lite):
- `engine/array/` — engine, catalog, memtable, segment, manifest, and
retention modules
- `nodedb/array.rs` — `NodeDbLite` public API methods (create, put_cell,
slice, read_coord, delete_cell, flush, history, compact)
- Integration test suite in `tests/array_lite.rs`
C/JNI FFI (nodedb-lite-ffi):
- `ffi_array.rs` — full C API: ndb_array_create, ndb_array_put_cell,
ndb_array_slice, ndb_array_read_coord, ndb_array_delete_cell,
ndb_array_flush, ndb_array_history, ndb_array_compact
- `nodedb_free_buf` added to lib.rs and the cbindgen header
- Smoke tests in `tests/array_smoke.rs`
WASM (nodedb-lite-wasm):
- `src/array.rs` — wasm-bindgen bindings mirroring the C API surface
- Tests in `tests/array.rs`
Adds `nodedb-array` and `zerompk` to all three crate manifests; adds
`getrandom` with the `wasm_js` feature to the WASM crate to satisfy the
`getrandom 0.3` requirement on `wasm32-unknown-unknown`. Adjusts the
tokio feature set in the core crate: library code no longer needs
`rt-multi-thread`; tests opt in via dev-dependencies.1 parent 019ef8c commit 2c03a7a
22 files changed
Lines changed: 3508 additions & 2 deletions
File tree
- nodedb-lite-ffi
- include
- src
- tests
- nodedb-lite-wasm
- src
- tests
- nodedb-lite
- src
- engine
- array
- nodedb
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
110 | 232 | | |
111 | 233 | | |
112 | 234 | | |
| |||
0 commit comments