Skip to main content

Module object

Module object 

Source
Expand description

ObjectReader (files/ObjectReader.py:44-311): one object of a SerializedFile, read on demand.

An ObjectRef is a cheap handle: an Arc on the file and the row’s index in the file’s object table, which it reads on demand. It owns no copy of the row and nothing else, so a batch can hold millions and clone them freely: every handle of a file shares the one table the file’s parse charged to the input’s meter (plan section 3.12). Reading goes through crate::walk::read_typetree_with_reader, by the rules of the file’s reader (SerializedFile::reader_kind), with the tree that ObjectRef::tree resolves (plan section 3.12: explicit, embedded, then the provider chain with the class and packed version as its key).

Owner: package D. The constructor and getters are implemented by the scaffold.

Structs§

ObjectRef
One object of a SerializedFile: the file and the index of its row (module docs).