ObjectDirectory.
This class caches the list of loose objects in memory, so the file system is not queried with stat calls.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private CachedObjectDirectory[] | |
| private ObjectIdOwnerMap | unpackedObjects
The set that contains unpacked objects identifiers, it is created when the cached instance is created. |
| private final ObjectDirectory |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| alts | back to summary |
|---|---|
| private CachedObjectDirectory[] alts | |
| unpackedObjects | back to summary |
|---|---|
| private ObjectIdOwnerMap<CachedObjectDirectory. The set that contains unpacked objects identifiers, it is created when the cached instance is created. | |
| wrapped | back to summary |
|---|---|
| private final ObjectDirectory wrapped | |
| CachedObjectDirectory | back to summary |
|---|---|
| pack-priv CachedObjectDirectory(ObjectDirectory wrapped) The constructor
| |
| close | back to summary |
|---|---|
| public void close() Implements abstract org. Implements java. Doc from org. Close any resources held by this database.
| |
| fileFor | back to summary |
|---|---|
| pack-priv File fileFor(AnyObjectId id) Implements abstract org.
| |
| getAlternateId | back to summary |
|---|---|
| private ObjectDirectory. | |
| getApproximateObjectCount | back to summary |
|---|---|
| public long getApproximateObjectCount() Implements abstract org. Doc from org. Get a quick, rough count of objects in this repository. Ignores loose
objects. Returns
| |
| getCommitGraph | back to summary |
|---|---|
| public Optional Implements abstract org.
| |
| getConfig | back to summary |
|---|---|
| pack-priv Config getConfig() Implements abstract org.
| |
| getDirectory | back to summary |
|---|---|
| pack-priv File getDirectory() Implements abstract org.
| |
| getFS | back to summary |
|---|---|
| pack-priv FS getFS() Implements abstract org.
| |
| getObjectSize | back to summary |
|---|---|
| pack-priv long getObjectSize(WindowCursor curs, AnyObjectId objectId) throws IOException Implements abstract org.
| |
| getPacks | back to summary |
|---|---|
| pack-priv Collection Implements abstract org.
| |
| getShallowCommits | back to summary |
|---|---|
| public Set Overrides org. Doc from org. Get the shallow commits of the current repository
| |
| has | back to summary |
|---|---|
| public boolean has(AnyObjectId objectId) throws IOException Overrides org. Doc from org. Does the requested object exist in this database?
This is a one-shot call interface which may be faster than allocating a
| |
| has | back to summary |
|---|---|
| private boolean has(AnyObjectId objectId, Set<ObjectDirectory. | |
| insertUnpackedObject | back to summary |
|---|---|
| pack-priv FileObjectDatabase. Implements abstract org.
| |
| myAlternates | back to summary |
|---|---|
| private CachedObjectDirectory[] myAlternates() | |
| newCachedDatabase | back to summary |
|---|---|
| public ObjectDatabase newCachedDatabase() Overrides org. Doc from org. Create a new cached database instance over this database. This instance might optimize queries by caching some information about database. So some modifications done after instance creation might fail to be noticed.
| |
| openLooseObject | back to summary |
|---|---|
| pack-priv ObjectLoader openLooseObject(WindowCursor curs, AnyObjectId id) throws IOException Implements abstract org.
| |
| openObject | back to summary |
|---|---|
| pack-priv ObjectLoader openObject(WindowCursor curs, AnyObjectId objectId) throws IOException Implements abstract org.
| |
| openObject | back to summary |
|---|---|
| private ObjectLoader openObject(final WindowCursor curs, final AnyObjectId objectId, Set<ObjectDirectory. | |
| openPack | back to summary |
|---|---|
| pack-priv Pack openPack(File pack) throws IOException Implements abstract org.
| |
| resolve | back to summary |
|---|---|
| pack-priv void resolve(Set<ObjectId> matches, AbbreviatedObjectId id) throws IOException Implements abstract org.
| |
| scanLoose | back to summary |
|---|---|
| private ObjectIdOwnerMap | |
| selectObjectRepresentation | back to summary |
|---|---|
| pack-priv void selectObjectRepresentation(PackWriter packer, ObjectToPack otp, WindowCursor curs) throws IOException Implements abstract org.
| |
| setShallowCommits | back to summary |
|---|---|
| public void setShallowCommits(Set<ObjectId> shallowCommits) throws IOException Overrides org. Doc from org. Update the shallow commits of the current repository
| |
| skipMe | back to summary |
|---|---|
| private Set | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| UnpackedObjectId | back to summary |
|---|---|
| pack-priv UnpackedObjectId(AnyObjectId id) | |