| Modifier and Type | Field and Description |
|---|---|
| private final DfsPackFile |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public long | getDeltaCount()
Overrides org. Get the number of delta objects stored in this pack. |
| public long | getObjectCount()
Implements abstract org. Get the number of objects in this pack. |
| public DfsPackDescription | |
| public DfsPackFile | |
| public boolean | hasObject(ObjectToPack
the object being packed. Can be used as an ObjectId. obj, StoredObjectRepresentation representation from the
rep)org.
instance that originally supplied this CachedPack.Implements abstract org. Determine if this pack contains the object representation given. |
| pack | back to summary |
|---|---|
| private final DfsPackFile pack | |
| DfsCachedPack | back to summary |
|---|---|
| pack-priv DfsCachedPack(DfsPackFile pack) | |
| copyAsIs | back to summary |
|---|---|
| pack-priv void copyAsIs(PackOutputStream out, DfsReader ctx) throws IOException | |
| getDeltaCount | back to summary |
|---|---|
| public long getDeltaCount() throws IOException Overrides org. Doc from org. Get the number of delta objects stored in this pack.
This is an optional method, not every cached pack storage system knows
the precise number of deltas stored within the pack. This number must be
smaller than This method must be fast, if the only way to determine delta counts is to scan the pack file's contents one object at a time, implementors should return 0 and avoid the high cost of the scan.
| |
| getObjectCount | back to summary |
|---|---|
| public long getObjectCount() throws IOException Implements abstract org. Doc from org. Get the number of objects in this pack.
| |
| getPackDescription | back to summary |
|---|---|
| public DfsPackDescription getPackDescription() Get the description of the pack.
| |
| getPackFile | back to summary |
|---|---|
| public DfsPackFile getPackFile() Get pack file
| |
| hasObject | back to summary |
|---|---|
| public boolean hasObject(ObjectToPack obj, StoredObjectRepresentation rep) Implements abstract org. Doc from org. Determine if this pack contains the object representation given. PackWriter uses this method during the finding sources phase to prune away any objects from the leading thin-pack that already appear within this pack and should not be sent twice.
Implementors are strongly encouraged to rely on looking at
| |