b.groupcompress : module documentation

Part of bzrlib

Core compression logic for compressing streams of related files.
Function sort_gc_optimal Sort and group the keys in parent_map into groupcompress order.
Class GroupCompressBlock An object which maintains the internal structure of the compressed data.
Function network_block_to_records Undocumented
Class PythonGroupCompressor No class docstring; 2/2 methods documented
Class PyrexGroupCompressor Produce a serialised group of compressed texts.
Function make_pack_factory Create a factory for creating a pack based groupcompress.
Function cleanup_pack_group Undocumented
Class GroupCompressVersionedFiles A group-compress based VersionedFiles implementation.
Class _LazyGroupCompressFactory Yield content from a GroupCompressBlock on demand.
Class _LazyGroupContentManager This manages a group of _LazyGroupCompressFactory objects.
Class _CommonGroupCompressor No class docstring; 7/7 methods documented
Class _BatchingBlockFetcher Fetch group compress blocks in batches.
Class _GCBuildDetails A blob of data about the build details.
Class _GCGraphIndex Mapper from GroupCompressVersionedFiles needs into GraphIndex storage.
def sort_gc_optimal(parent_map):
Sort and group the keys in parent_map into groupcompress order.

groupcompress is defined (currently) as reverse-topological order, grouped by the key prefix.

ReturnsA sorted-list of keys
def network_block_to_records(storage_kind, bytes, line_end):
Undocumented
def make_pack_factory(graph, delta, keylength, inconsistency_fatal=True):
Create a factory for creating a pack based groupcompress.

This is only functional enough to run interface tests, it doesn't try to provide a full pack environment.

ParametersgraphStore a graph.
deltaDelta compress contents.
keylengthHow long should keys be.
def cleanup_pack_group(versioned_files):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2019-11-20 00:36:28.