Part of bzrlib.knit View In Hierarchy
Method | __init__ | Create a _KnitKeyAccess with transport and mapper. |
Method | add_raw_records | Add raw knit bytes to a storage area. |
Method | flush | Flush pending writes on this access object. |
Method | get_raw_records | Get the raw bytes for a records. |
Parameters | transport | The transport the access object is rooted at. |
mapper | The mapper used to map keys to .knit files. |
The data is spooled to the container writer in one bytes-record per raw data item.
Parameters | sizes | An iterable of tuples containing the key and size of each raw data segment. |
raw_data | A bytestring containing the data. | |
Returns | A list of memos to retrieve the record later. Each memo is an opaque index memo. For _KnitKeyAccess the memo is (key, pos, length), where the key is the record key. |