This is the loose object representation for a Git object database, where
objects are stored loose by hashing them into directories by their
org..
| Modifier and Type | Field and Description |
|---|---|
| private final File | |
| private static final Logger | |
| private static final int | MAX_STALE_READ_RETRIES
Maximum number of attempts to read a loose object for which a stale file handle exception is thrown |
| private final CoreConfig. | |
| private final UnpackedObjectCache |
| Access | Constructor and Description |
|---|---|
| pack-priv | LooseObjects(Config
configuration for the loose objects handler. config, File the location of the dir)objects directory.Initialize a reference to an on-disk object directory. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv File | Returns: java. location of the specified loose object.identity of the object to get the File location for. objectId)Compute the location of a loose object file. |
| pack-priv File | |
| pack-priv ObjectLoader | Returns: a loader for the loose file objectcursor on the database curs, File the path of the loose object path, AnyObjectId the object id id)Provides a loader for an objectId |
| private ObjectLoader | |
| pack-priv long | |
| private long | |
| pack-priv boolean | Returns: true if the specified object is stored as a loose object.identity of the object to test for existence of. objectId)Does the requested object exist as a loose object? |
| pack-priv boolean | |
| private boolean | |
| pack-priv FileObjectDatabase. | |
| pack-priv ObjectLoader | |
| 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. |
| public String | |
| private FileObjectDatabase. | |
| pack-priv UnpackedObjectCache | Returns: the cache of the objects currently unpacked.
Getter for the field |
| directory | back to summary |
|---|---|
| private final File directory | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MAX_STALE_READ_RETRIES | back to summary |
|---|---|
| private static final int MAX_STALE_READ_RETRIES Maximum number of attempts to read a loose object for which a stale file handle exception is thrown | |
| trustLooseObjectStat | back to summary |
|---|---|
| private final CoreConfig. | |
| unpackedObjectCache | back to summary |
|---|---|
| private final UnpackedObjectCache unpackedObjectCache | |
| LooseObjects | back to summary |
|---|---|
| pack-priv LooseObjects(Config config, File dir) Initialize a reference to an on-disk object directory. | |
| close | back to summary |
|---|---|
| pack-priv void close() | |
| create | back to summary |
|---|---|
| pack-priv void create() throws IOException | |
| fileFor | back to summary |
|---|---|
| pack-priv File fileFor(AnyObjectId objectId) Compute the location of a loose object file.
| |
| getDirectory | back to summary |
|---|---|
| pack-priv File getDirectory() Getter for the field
| |
| getObjectLoader | back to summary |
|---|---|
| pack-priv ObjectLoader getObjectLoader(WindowCursor curs, File path, AnyObjectId id) throws IOException Provides a loader for an objectId
| |
| getObjectLoaderWithoutRefresh | back to summary |
|---|---|
| private ObjectLoader getObjectLoaderWithoutRefresh(WindowCursor curs, File path, AnyObjectId id) throws IOException | |
| getSize | back to summary |
|---|---|
| pack-priv long getSize(WindowCursor curs, AnyObjectId id) throws IOException | |
| getSizeWithoutRefresh | back to summary |
|---|---|
| private long getSizeWithoutRefresh(WindowCursor curs, AnyObjectId id) throws IOException | |
| has | back to summary |
|---|---|
| pack-priv boolean has(AnyObjectId objectId) Does the requested object exist as a loose object?
| |
| hasCached | back to summary |
|---|---|
| pack-priv boolean hasCached(AnyObjectId id) | |
| hasWithoutRefresh | back to summary |
|---|---|
| private boolean hasWithoutRefresh(AnyObjectId objectId) | |
| insert | back to summary |
|---|---|
| pack-priv FileObjectDatabase. | |
| open | back to summary |
|---|---|
| pack-priv ObjectLoader open(WindowCursor curs, AnyObjectId id) throws IOException | |
| resolve | back to summary |
|---|---|
| pack-priv boolean resolve(Set<ObjectId> matches, AbbreviatedObjectId id, int matchLimit) Find objects matching the prefix abbreviation.
| |
| 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- | |
| tryMove | back to summary |
|---|---|
| private FileObjectDatabase. | |
| unpackedObjectCache | back to summary |
|---|---|
| pack-priv UnpackedObjectCache unpackedObjectCache()
Getter for the field
| |