series_bindings.SeriesDomainIndex
Lazy Mapping of bound addresses to CellType.
Usage
series_bindings.SeriesDomainIndex()Lookup scans per-sheet covering rectangles from the manifest (O(#series) per miss) and memoizes CellType per address. from_workbook values come from graph node values when attached, otherwise from a streaming workbook read. The first such read prefetches every off-graph from_workbook cell, one stream per sheet. Truthiness reports declared covers and does not change after expansion. len is the number of compiled entries.
Methods
| Name | Description |
|---|---|
| __bool__() | Return whether any series declares a domain, without reading values. |
| bind_graph() |
Use graph node values for subsequent from_workbook lookups.
|
| domain_for() |
Return the compiled CellType covering key, if any.
|
| from_bindings() | Build an index from a loaded (merged) binding manifest. |
| from_handle() |
Re-read the sidecar named by handle, or return None if it is stale.
|
__bool__()
Return whether any series declares a domain, without reading values.
Usage
__bool__()Stays the same after len and iteration. Blank from_workbook cells still count. len is the compiled size and can be zero while this is true.
bind_graph()
Use graph node values for subsequent from_workbook lookups.
Usage
bind_graph(graph)domain_for()
Return the compiled CellType covering key, if any.
Usage
domain_for(key)from_bindings()
Build an index from a loaded (merged) binding manifest.
Usage
from_bindings(bindings, *, workbook=None, graph=None, bindings_path=None)from_handle()
Re-read the sidecar named by handle, or return None if it is stale.
Usage
from_handle(handle, *, graph=None)