org.eclipse.jgit.internal.storage.dfs.DfsPackFile on a storage
system.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | DfsObjDatabase.
Snapshot of packs scanned in a single pass. |
| private static class | |
| public static enum | DfsObjDatabase.
Sources for a pack file. |
| Modifier and Type | Field and Description |
|---|---|
| private static final DfsObjDatabase. | |
| private Comparator | |
| private final AtomicReference | |
| private DfsReaderOptions | |
| private final DfsRepository |
| Access | Constructor and Description |
|---|---|
| protected | DfsObjDatabase(DfsRepository
repository owning this object database. repository, DfsReaderOptions how readers should access the object database. options)Initialize an object database for our repository. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| protected void | |
| public void | close()
Implements abstract org. Implements java. Close any resources held by this database. |
| protected void | commitPack(Collection<DfsPackDescription>
description of the new packs. desc, Collection<DfsPackDescription> if not null, list of packs to remove. replaces)Commit a pack and index pair that was written to the DFS. |
| protected abstract void | commitPackImpl(Collection<DfsPackDescription>
description of the new packs. desc, Collection<DfsPackDescription> if not null, list of packs to remove. replaces)Implementation of pack commit. |
| protected DfsPackFile | Returns: the dfs packfileblock cache cache, DfsPackDescription pack description dsc)Create instances of DfsPackFile Implementors can decide to construct or wrap DfsPackFile in different ways. |
| public DfsObjDatabase. | Returns: list of available packs, with some additional metadata. The returned array is shared with the implementation and must not be modified by the caller.List currently known pack files in the repository, without scanning. |
| public DfsPackFile[] | Returns: list of available packs. The returned array is shared with the implementation and must not be modified by the caller.List currently known pack files in the repository, without scanning. |
| public DfsReftable[] | Returns: list of available reftables. The returned array is shared with the implementation and must not be modified by the caller.List currently known reftable files in the repository, without scanning. |
| public PackBitmapIndexWriter | Returns: a writer to store bitmaps associated with the packPack file to which the bitmaps are associated. pack)Returns a writer to store the bitmap index in this object database. |
| public PackIndexWriter | Returns: a writer to store the index associated with the packPack file to which the index is associated. pack, int which version of the index to write indexVersion)Returns a writer to store the pack index in this object database. |
| public DfsObjDatabase. | Returns: list of available packs, with some additional metadata. The returned array is shared with the implementation and must not be modified by the caller.Scan and list all available pack files in the repository. |
| public DfsPackFile[] | Returns: list of available packs. The returned array is shared with the implementation and must not be modified by the caller.Scan and list all available pack files in the repository. |
| public DfsReaderOptions | Returns: configured reader options, such as read-ahead.Get configured reader options, such as read-ahead. |
| public DfsReftable[] | Returns: list of available reftables. The returned array is shared with the implementation and must not be modified by the caller.Scan and list all available reftable files in the repository. |
| protected DfsRepository | Returns: repository owning this object database.Get repository owning this object database. |
| public boolean | Returns: true if the specified object is stored in this database.identity of the object to test for existence of. objectId, boolean if true, ignore objects that are unreachable. avoidUnreachableObjects)Does the requested object exist in this database? |
| protected abstract List | Returns: available packs. May be empty if there are no packs.List the available pack files. |
| public ObjectInserter | newInserter()
Implements abstract org. Create a new |
| protected abstract DfsPackDescription | Returns: a unique name for the pack file. Must not collide with any other pack file name in the same DFS.where the pack stream is created. sourceGenerate a new unique name for a pack file. |
| protected DfsPackDescription | Returns: a unique name for the pack file. Must not collide with any other pack file name in the same DFS.where the pack stream is created. source,the estimated size of the pack. estimatedPackSize)Generate a new unique name for a pack file. |
| public DfsReader | newReader()
Implements abstract org. Create a new |
| protected abstract ReadableChannel | Returns: channel to read the file.description of pack related to the data that will be read.
This is an instance previously obtained from
desc, PackExt listPacks(), but not necessarily from the same
DfsObjDatabase instance.file extension that will be read i.e "pack" or "idx". ext)Open a pack, pack index, or other related file for reading. |
| private static Map | |
| protected Comparator | Returns: comparator to sortDfsReftable by priority.Get comparator to sort |
| private static Map | |
| protected abstract void | |
| pack-priv DfsObjDatabase. | |
| private DfsObjDatabase. | |
| public void | setPackComparator(Comparator<DfsPackDescription>
comparator. packComparator)Set the comparator used when searching for objects across packs. |
| protected abstract DfsOutputStream | Returns: channel to write the file.description of pack related to the data that will be written.
This is an instance previously obtained from
desc, PackExt newPack(PackSource).file extension that will be written i.e "pack" or "idx". ext)Open a pack, pack index, or other related file for writing. |