| Modifier and Type | Class and Description |
|---|---|
| public static class | DfsPackFile.
An index factory backed by Dfs streams and references cached in DfsBlockCache |
| public static class | DfsPackFile.
Load primary and reverse index from Dfs streams and cache the references in DfsBlockCache. |
| private static class | |
| public static interface | DfsPackFile.
Returns the indexes for this pack. |
| public static interface | DfsPackFile.
Loads the PackBitmapIndex associated with this packfile |
| private static class | |
| private static class | DfsPackFile.
Load the packbitmapindex from the BITMAP_INDEX pack extension |
| Modifier and Type | Field and Description |
|---|---|
| private volatile PackBitmapIndex | bitmapIndex
Index of compressed bitmap mapping entire object graph. |
| private final DfsPackFile. | |
| private volatile CommitGraph | commitGraph
Index of compressed commit graph mapping entire object graph. |
| private volatile LongList | corruptObjects
Objects we have tried to read, and discovered to be corrupt. |
| private final Object | corruptObjectsLock
Lock for |
| public static final DfsPackFile. | DEFAULT_BITMAP_LOADER
Loader for the default file-based |
| private volatile PackIndex | |
| private final DfsPackFile. | |
| private volatile PackObjectSizeIndex | |
| private boolean | objectSizeIndexLoadAttempted
Index by size |
| private static final int | |
| private static final long | |
| private volatile PackReverseIndex |
| Access | Constructor and Description |
|---|---|
| pack-priv | DfsPackFile(DfsBlockCache
cache that owns the pack data. cache, DfsPackDescription description of the pack within the DFS. desc)Construct a reader for an existing, packfile. |
| public | DfsPackFile(DfsBlockCache
cache that owns the pack data cache, DfsPackDescription description of the pack within the DFS desc, DfsPackFile.loader to get the bitmaps of this pack (if any) bitmapLoader,an IndexFactory to get references to the indexes of this pack indexFactoryCreate an instance of DfsPackFile with a custom bitmap loader |
| Modifier and Type | Method and Description |
|---|---|
| private static InputStream | |
| pack-priv void | |
| pack-priv void | |
| private long | |
| private void | |
| private byte[] | |
| private long | |
| pack-priv long | |
| pack-priv ObjectLoader | Returns: the object loader for the requested object if it is contained in this pack; null if the object was not found.temporary working space associated with the calling thread. ctx, AnyObjectId the object to obtain from the pack. Must not be null. id)Get an object from this pack. |
| public PackBitmapIndex | Returns: the BitmapIndex.reader context to support reading from the backing store if
the index is not already loaded in memory. ctx)Get the BitmapIndex for this PackFile. |
| public CommitGraph | Returns: org.,
null if pack doesn't have it.reader context to support reading from the backing store if
the index is not already loaded in memory. ctx)Get the Commit Graph for this PackFile. |
| pack-priv byte[] | |
| pack-priv long | Returns: size of the object from the index. Negative if object is not in the index (below threshold or not a blob)reader context to support reading from the backing store if
the object size index is not already loaded in memory. ctx, AnyObjectId object id of an object in the pack id)Return the size of the object from the object-size index. |
| pack-priv long | Returns: number of objects in index of this pack, likewise in this packcurrent reader for the calling thread. ctx)Obtain the total number of objects available in this pack. |
| pack-priv long | |
| pack-priv long | |
| private PackObjectSizeIndex | |
| pack-priv int | Returns: minimum size for indexing in bytesreader context to support reading from the backing store if
the object size index is not already loaded in memory. ctx)Return minimum size for an object to be included in the object size index. |
| pack-priv int | |
| public DfsPackDescription | Returns: description that was originally used to configure this pack file.Get description that was originally used to configure this pack file. |
| public PackIndex | Returns: the PackIndex.reader context to support reading from the backing store if
the index is not already loaded in memory. ctx)Get the PackIndex for this PackFile. |
| public PackReverseIndex | Returns: the PackReverseIndexreader context to support reading from the backing store if
the index is not already loaded in memory ctx)Get the PackReverseIndex for this PackFile. |
| public boolean | Returns: true if the object exists in this pack; false if it does not.reader context to support reading from the backing store if
the index is not already loaded in memory. ctx, AnyObjectId object to be located. id)Check if an object is stored within this pack. |
| pack-priv boolean | Returns: true if the packfile has an object size index.reader context to support reading from the backing store if
the object size index is not already loaded in memory. ctx)Return if this packfile has an object size index attached. |
| private PackIndex | |
| pack-priv boolean | |
| pack-priv final boolean | |
| public boolean | Returns: whether the pack index file is loaded and cached in memory.Whether the pack index file is loaded and cached in memory. |
| pack-priv ObjectLoader | |
| private DfsBlockCache. | |
| private DfsBlockCache. | |
| private DfsBlockCache. | |
| private ByteBuffer | |
| private IOException | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv void |