Portals 0.7.0 · dev0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::FileLogModel Class Referencefinal
File-backed rich model with optional bounded WindowSource delivery. Creation owns the path without opening it. All I/O methods are worker-only; they do not start threads. Every operation owns its native handle and bounded block cache. No row history, dense row index, mapping or complete-file text is retained. Callers schedule operations on their existing executor. Published pages use the WindowSource budget and remain immutable.
More...
File-backed rich model with optional bounded WindowSource delivery. Creation owns the path without opening it. All I/O methods are worker-only; they do not start threads. Every operation owns its native handle and bounded block cache. No row history, dense row index, mapping or complete-file text is retained. Callers schedule operations on their existing executor. Published pages use the WindowSource budget and remain immutable.
Owned path; no filesystem access is performed here.
options
Positive bounded limits.
continuation
Optional explicit logical resource for reopen; native identity and witness are still validated by resolve. Empty issues an independent resource without file access.
Returns
Owning model or invalid-option/allocation failure.
Last file-specific load failure, not per-job provenance under concurrent operations. Copied under a short mutex never held during I/O; use loadFile for the exact causal failure.
Bounded worker command; cursors are byte gaps in a file generation.
out
Existing shared-budget page/workspace; all dynamic row payload uses its arena.
stop
Cooperative cancellation checked between bounded reads and records.
Returns
Page with explicit boundary, HISTORY_UNAVAILABLE after generation change, or failure. Native failures are available through lastFailure(). An unterminated final record is visible at TEMPORARY_TAIL; appending to it preserves RowId and changes its value revision.