b.k._NetworkContentMapGenerator(_ContentMapGenerator) : class documentation

Part of bzrlib.knit View In Hierarchy

Content map generator sourced from a network stream.
Method __init__ Construct a _NetworkContentMapGenerator from a bytes block.
Method get_record_stream Get a record stream for for keys requested by the bytestream.
Method _wire_bytes Get the bytes to put on the wire for 'key'.

Inherited from _ContentMapGenerator:

Method _get_content Get the content object for key.
Method _work Produce maps of text and KnitContents as dicts.
Method _get_one_work Undocumented
def __init__(self, bytes, line_end):
Construct a _NetworkContentMapGenerator from a bytes block.
def get_record_stream(self):
Get a record stream for for keys requested by the bytestream.
def _wire_bytes(self):
Get the bytes to put on the wire for 'key'.

The first collection of bytes asked for returns the serialised raw_record_map and the additional details (key, parent) for key. Subsequent calls return just the additional details (key, parent). The wire storage_kind given for the first key is 'knit-delta-closure', For subsequent keys it is 'knit-delta-closure-ref'.

ParameterskeyA key from the content generator.
ReturnsBytes to put on the wire.
API Documentation for Bazaar, generated by pydoctor at 2019-12-13 00:41:47.