components/incremental-file-index-component
Incremental per-file projections with stat-based restoration and injected persistence.
Classes
Section titled “Classes”| Class | Description |
|---|---|
| IncrementalFileIndexComponent | Keeps per-file projections current while loaded. Call loadWithPromises after metadata readiness if the projection needs cached metadata. Listeners are installed before restoration, and events win over older reads. Reads are sequential, bounding memory and I/O; consumers own schema, storage location and secondary indexes. Unchanged records are reused by mtime and size, which cannot detect a same-stat external rewrite. |
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| IncrementalFileIndexComponentConstructorParams | Dependencies of an incremental index. Persistence must validate its own schema. |
| IndexedFileRecord | A projection and the file stats observed before reading its text. |
| IndexFileParams | Inputs to a per-file projection. |