java.lang.Object
org.eclipse.jgit.internal.storage.dfs.MidxDescList
Helper class for calculations over a list of pack descriptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic MidxDescListcreate(List<DfsPackDescription> descs) Wrap the packs list into amidxDescListstatic MidxDescListcreate(DfsPackDescription[] descs) Wrap the list of pack descriptions into a MidxDescListfindAllCoveringMidxs(Collection<DfsPackDescription> queryPacks) Return the union of midxs that cover the query packs (directly or indirectly).Wrapper overfindAllCoveringMidxs(Collection)for the tests
-
Method Details
-
create
Wrap the list of pack descriptions into a MidxDescListThe input list is well-formed, doesn't have duplicated packs/midxs.
- Parameters:
descs- list of pack descriptions- Returns:
- amidxDescList instance
-
create
Wrap the packs list into amidxDescListThe input list is well-formed, doesn't have duplicated packs/midxs.
- Parameters:
descs- list of pack descriptions- Returns:
- amidxDescList instance
-
findAllCoveringMidxs
Wrapper overfindAllCoveringMidxs(Collection)for the tests- Parameters:
pack- a single pack- Returns:
- midxs containing the pack
-
findAllCoveringMidxs
Return the union of midxs that cover the query packs (directly or indirectly).An midx covers itself and its bases.
- Parameters:
queryPacks- packs to be modified- Returns:
- midxs covering any of the query packs
-