| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Sweep.Group
Description
Bounded inventory joins for a mount's mirror and private-cache preview. Each package retains the observations that actually listed it.
Synopsis
- data InventoryLocation
- groupAlphabet :: StoreObservation -> StoreObservation -> NameAlphabet
- collectGroupBucket :: NameAlphabet -> NamePrefix -> StoreObservation -> StoreObservation -> IO (BucketNames (StoreObservation, StoreFault) (PackageName, [InventoryLocation]))
- boundedVersions :: Int -> [(a, [StoredVersion])] -> Either StoreFault [(a, [StoredVersion])]
Documentation
data InventoryLocation Source #
A listed package's store. Constructor order keeps mirror reads and credit first.
Constructors
| MirrorInventory | |
| PrivateCacheInventory |
Instances
| Show InventoryLocation Source # | |
Defined in Ecluse.Core.Registry.Sweep.Group Methods showsPrec :: Int -> InventoryLocation -> ShowS # show :: InventoryLocation -> String # showList :: [InventoryLocation] -> ShowS # | |
| Eq InventoryLocation Source # | |
Defined in Ecluse.Core.Registry.Sweep.Group Methods (==) :: InventoryLocation -> InventoryLocation -> Bool # (/=) :: InventoryLocation -> InventoryLocation -> Bool # | |
| Ord InventoryLocation Source # | |
Defined in Ecluse.Core.Registry.Sweep.Group Methods compare :: InventoryLocation -> InventoryLocation -> Ordering # (<) :: InventoryLocation -> InventoryLocation -> Bool # (<=) :: InventoryLocation -> InventoryLocation -> Bool # (>) :: InventoryLocation -> InventoryLocation -> Bool # (>=) :: InventoryLocation -> InventoryLocation -> Bool # max :: InventoryLocation -> InventoryLocation -> InventoryLocation # min :: InventoryLocation -> InventoryLocation -> InventoryLocation # | |
groupAlphabet :: StoreObservation -> StoreObservation -> NameAlphabet Source #
Use a common partition only when both backends declare the same alphabet.
collectGroupBucket :: NameAlphabet -> NamePrefix -> StoreObservation -> StoreObservation -> IO (BucketNames (StoreObservation, StoreFault) (PackageName, [InventoryLocation])) Source #
Join actual package presence under the shared bucket budget, retaining each location.
boundedVersions :: Int -> [(a, [StoredVersion])] -> Either StoreFault [(a, [StoredVersion])] Source #
Reject an oversized combined version inventory and deduplicate identities within each location.