Create a new local filesystem connector.
Optionaloptions: LocalConnectorOptionsOptional configuration. See LocalConnectorOptions.
Close all pooled file handles and clear the LRU pool.
After calling this method, the connector must not be used for further
reads. Handles are closed concurrently via Promise.all.
Resolves when every open handle has been closed.
Read a contiguous byte range from a local file.
The file handle is obtained from the LRU pool (or opened on first
access). The returned Uint8Array may be shorter than length if
the file is smaller than offset + length.
Absolute or relative filesystem path to the FGB file.
Zero-based byte offset to begin reading from.
Number of bytes to read.
The requested byte range.
Read multiple byte ranges from the same local file in parallel.
All ranges are dispatched concurrently via Promise.all, letting the
OS I/O scheduler optimize disk access order.
Absolute or relative filesystem path to the FGB file.
Array of { offset, length } byte-range descriptors.
Array of Uint8Array chunks in the same order as the input ranges.
Local filesystem connector using Node.js
FileHandlewith LRU pooling.Opens FGB files on demand and caches the resulting
FileHandlein an LRU map. Subsequent reads against the same path reuse the cached handle, avoiding repeatedopen()syscalls. When the pool exceeds LocalConnectorOptions.maxOpenFiles, the least-recently-used handle is evicted and closed.Example