Part of bzrlib.repofmt.pack_repo View In Hierarchy
AggregateIndex is reponsible for managing the PackAccess object, Index-To-Pack mapping, and all indices list for a specific type of index such as 'revision index'.
A CombinedIndex provides an index on a single key space built up from several on-disk indices. The AggregateIndex builds on this to provide a knit access layer, and allows having up to one writable index within the collection.
Method | __init__ | Create an AggregateIndex. |
Method | add_index | Add index to the aggregate, which is an index for Pack pack. |
Method | add_writable_index | Add an index which is able to have data added to it. |
Method | clear | Reset all the aggregate data to nothing. |
Method | remove_index | Remove index from the indices used to answer queries. |
Parameters | reload_func | A function to call if we find we are missing an index. Should have the form reload_func() => True if the list of active pack files has changed. |
Future searches on the aggregate index will seach this new index before all previously inserted indices.
Parameters | index | An Index for the pack. |
pack | A Pack instance. |