Skip to main content

series_bindings.SeriesDomainIndex

Lazy Mapping of bound addresses to CellType.

Usage

Source

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

Source

__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

Source

bind_graph(graph)

domain_for()

Return the compiled CellType covering key, if any.

Usage

Source

domain_for(key)

from_bindings()

Build an index from a loaded (merged) binding manifest.

Usage

Source

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

Source

from_handle(handle, *, graph=None)