b.v.KeyMapper(object) : class documentation

Part of bzrlib.versionedfile View In Hierarchy

Known subclasses: bzrlib.versionedfile.ConstantMapper, bzrlib.versionedfile.URLEscapeMapper

KeyMappers map between keys and underlying partitioned storage.
Method map Map key to an underlying storage identifier.
Method unmap Map a partitioned storage id back to a key prefix.
def map(self, key):
Map key to an underlying storage identifier.
ParameterskeyA key tuple e.g. ('file-id', 'revision-id').
ReturnsAn underlying storage identifier, specific to the partitioning mechanism.
def unmap(self, partition_id):
Map a partitioned storage id back to a key prefix.
Parameterspartition_idThe underlying partition id.
ReturnsAs much of a key (or prefix) as is derivable from the partition id.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.