This is the org.s object
representation for a Git object database, where objects are stored in
compressed containers known as
org.s.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Config | |
| private final File | |
| private static final Logger | |
| private static final int | |
| private static final PackDirectory. | |
| private final AtomicReference | |
| private final CoreConfig. |
| Access | Constructor and Description |
|---|---|
| pack-priv | PackDirectory(Config
configuration this directory consults for write settings. config, File the location of the directory)pack directory.Initialize a reference to an on-disk 'pack' directory. |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| pack-priv void | |
| pack-priv void | |
| private boolean | |
| pack-priv File | |
| pack-priv Pack | Returns: org. which
contains the specified object or null if it is not stored
in this PackDirectory.identity of the object to find the Pack for. objectId)Get the |
| private Map | Returns: a map oforg.s
and org.s keyed
by pack idsScans the pack directory for
|
| pack-priv Collection | |
| pack-priv long | |
| private void | |
| pack-priv boolean | Returns: true if the specified object is stored in this PackDirectory.identity of the object to test for existence of. objectId)Does the requested object exist in this PackDirectory? |
| private static int | |
| pack-priv void | |
| pack-priv ObjectLoader | |
| private void | |
| pack-priv boolean | Returns: true if the matches were exhausted before reaching
maxLimit.set to add any located ObjectIds to. This is an output
parameter. matches, AbbreviatedObjectId prefix to search for. id, int maximum number of results to return. At most this many
ObjectIds should be added to matches before returning. matchLimit)Find objects matching the prefix abbreviation. |
| private static Map | |
| private PackDirectory. | |
| private PackDirectory. | |
| pack-priv boolean | |
| pack-priv void | |
| public String |
| config | back to summary |
|---|---|
| private final Config config | |
| directory | back to summary |
|---|---|
| private final File directory | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MAX_PACKLIST_RESCAN_ATTEMPTS | back to summary |
|---|---|
| private static final int MAX_PACKLIST_RESCAN_ATTEMPTS | |
| NO_PACKS | back to summary |
|---|---|
| private static final PackDirectory. | |
| packList | back to summary |
|---|---|
| private final AtomicReference<PackDirectory. | |
| trustPackStat | back to summary |
|---|---|
| private final CoreConfig. | |
| PackDirectory | back to summary |
|---|---|
| pack-priv PackDirectory(Config config, File directory) Initialize a reference to an on-disk 'pack' directory. | |
| checkRescanPackThreshold | back to summary |
|---|---|
| private int checkRescanPackThreshold(int retries, PackMismatchException e) throws PackMismatchException | |
| close | back to summary |
|---|---|
| pack-priv void close() | |
| create | back to summary |
|---|---|
| pack-priv void create() throws IOException | |
| doLogExponentialBackoff | back to summary |
|---|---|
private boolean doLogExponentialBackoff(int n)
| |
| getDirectory | back to summary |
|---|---|
| pack-priv File getDirectory() Getter for the field
| |
| getPack | back to summary |
|---|---|
| pack-priv Pack getPack(AnyObjectId objectId) Get the
| |
| getPackFilesByExtById | back to summary |
|---|---|
| private Map Scans the pack directory for
| |
| getPacks | back to summary |
|---|---|
| pack-priv Collection | |
| getSize | back to summary |
|---|---|
| pack-priv long getSize(WindowCursor curs, AnyObjectId id) throws PackMismatchException | |
| handlePackError | back to summary |
|---|---|
| private void handlePackError(IOException e, Pack p) | |
| has | back to summary |
|---|---|
| pack-priv boolean has(AnyObjectId objectId) Does the requested object exist in this PackDirectory?
| |
| indexOf | back to summary |
|---|---|
| private static int indexOf(Pack[] list, Pack pack) | |
| insert | back to summary |
|---|---|
| pack-priv void insert(Pack pack) | |
| open | back to summary |
|---|---|
| pack-priv ObjectLoader open(WindowCursor curs, AnyObjectId objectId) throws PackMismatchException | |
| remove | back to summary |
|---|---|
| private void remove(Pack deadPack) | |
| resolve | back to summary |
|---|---|
| pack-priv boolean resolve(Set<ObjectId> matches, AbbreviatedObjectId id, int matchLimit) Find objects matching the prefix abbreviation.
| |
| reuseMap | back to summary |
|---|---|
| private static Map | |
| scanPacks | back to summary |
|---|---|
| private PackDirectory. | |
| scanPacksImpl | back to summary |
|---|---|
| private PackDirectory. | |
| searchPacksAgain | back to summary |
|---|---|
| pack-priv boolean searchPacksAgain(PackDirectory. | |
| selectRepresentation | back to summary |
|---|---|
| pack-priv void selectRepresentation(PackWriter packer, ObjectToPack otp, WindowCursor curs) throws PackMismatchException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Pack[] | |
| pack-priv final FileSnapshot | snapshot
State just before reading the pack directory. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| packs | back to summary |
|---|---|
| pack-priv final Pack[] packs All known packs, sorted by | |
| snapshot | back to summary |
|---|---|
| pack-priv final FileSnapshot snapshot State just before reading the pack directory. | |
| PackList | back to summary |
|---|---|
| pack-priv PackList(FileSnapshot monitor, Pack[] packs) | |