b.k._ContentMapGenerator(object) : class documentation

Part of bzrlib.knit View In Hierarchy

Known subclasses: bzrlib.knit._NetworkContentMapGenerator, bzrlib.knit._VFContentMapGenerator

Generate texts or expose raw deltas for a set of texts.
Method __init__ Undocumented
Method get_record_stream Get a record stream for the keys requested during __init__.
Method _get_content Get the content object for key.
Method _work Produce maps of text and KnitContents as dicts.
Method _get_one_work Undocumented
Method _wire_bytes Get the bytes to put on the wire for 'key'.
def __init__(self, ordering='unordered'):
Undocumented
def _get_content(self, key):
Get the content object for key.
def get_record_stream(self):
Get a record stream for the keys requested during __init__.
def _work(self):
Produce maps of text and KnitContents as dicts.
Returns(text_map, content_map) where text_map contains the texts for the requested versions and content_map contains the KnitContents.
def _get_one_work(self, requested_key):
Undocumented
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 2022-06-16 00:25:16.