Implementors may extend this class and add additional data members.
Instances of this class are cached with the DfsPackFile, and should not be modified once initialized and presented to the JGit DFS library.
| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private CommitGraphWriter. | |
| private long | |
| private long | |
| private int | |
| private int | |
| private long | |
| private long | |
| private long | |
| private long | |
| private final String | |
| private DfsObjDatabase. | |
| private PackStatistics | |
| private ReftableWriter. | |
| private final DfsRepositoryDescription | |
| private long[] |
| Access | Constructor and Description |
|---|---|
| public | DfsPackDescription(DfsRepositoryDescription
description of the repo containing the pack file. repoDesc, String name of the pack file. Must end with ".pack". name, DfsObjDatabase.the source of the pack. packSourceInitialize a description by pack name and repository. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public DfsPackDescription | |
| public boolean | equals(Object
the reference object with which to compare. b)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | Returns: blockSize of the file, in bytes. If 0 the blockSize size is not yet known and may be discovered when opening the file.the file extension. ext)Get blockSize of the file, in bytes. |
| public CommitGraphWriter. | Returns: stats from the sibling commit graph, if created.Get stats from the sibling commit graph, if created. |
| public long | Returns: number of delta compressed objects in the pack.Get number of delta compressed objects in the pack. |
| public long | Returns: estimated size of the .pack file in bytes. If 0 the pack file size is unknown.Get estimated size of the .pack file in bytes. |
| public String | |
| public long | Returns: size of the file, in bytes. If 0 the file size is not yet known.the file extension. ext)Get size of the file, in bytes. |
| public int | Returns: the version of the index file written.Get the version of the index file written. |
| public long | Returns: time the pack was created, in milliseconds.Get time the pack was created, in milliseconds. |
| public long | Returns: maxUpdateIndex for the reftable, if present.Get maxUpdateIndex for the reftable, if present. |
| public long | Returns: minUpdateIndex for the reftable, if present.Get minUpdateIndex for the reftable, if present. |
| public long | |
| public DfsObjDatabase. | |
| public PackStatistics | Returns: statistics from PackWriter, if the pack was built with it. Generally this is only available for packs created by DfsGarbageCollector or DfsPackCompactor, and only when the pack is being committed to the repository.Get statistics from PackWriter, if the pack was built with it. |
| public ReftableWriter. | Returns: stats from the sibling reftable, if created.Get stats from the sibling reftable, if created. |
| public DfsRepositoryDescription | |
| public DfsStreamKey | Returns: cache key for use by the block cache.the file extension. ext)Get cache key for use by the block cache. |
| public boolean | Returns: whether the pack file extension is known to exist.the file extension ext)Whether the pack file extension is known to exist. |
| public int | |
| pack-priv static boolean | |
| public static Comparator | Returns: comparator.Comparator for packs when looking up objects in indexes. |
| public static Comparator | Returns: comparator.comparator for the packSourceComparatorPackSource, used as the first step in
comparison.Comparator for packs when looking up objects in indexes. |
| pack-priv static Comparator | |
| pack-priv static Comparator | |
| public DfsPackDescription | Returns: thisthe file extension. ext, int blockSize of the file, in bytes. If 0 the blockSize is not
known and will be determined on first read. blockSize)Set blockSize of the file, in bytes. |
| pack-priv void | |
| public DfsPackDescription | Returns: thisnumber of delta compressed objects in the pack. cnt)Set number of delta compressed objects in the pack. |
| public DfsPackDescription | Returns: thisestimated size of the .pack file in bytes. If 0 the pack file
size is unknown. estimatedPackSize)Set estimated size of the .pack file in bytes. |
| public DfsPackDescription | Returns: thisthe file extension. ext, long size of the file in bytes. If 0 the file is not known and will
be determined on first read. bytes)Set size of the file in bytes. |
| public DfsPackDescription | Returns: thisthe version of the index file written. version)Set the version of the index file written. |
| public DfsPackDescription | Returns: thistime the pack was created, in milliseconds. 0 if not known. timeMillis)Set time the pack was created, in milliseconds. |
| public DfsPackDescription | Returns: thismaxUpdateIndex for the reftable. max)Set maxUpdateIndex for the reftable. |
| public DfsPackDescription | Returns: thisminUpdateIndex for the reftable. min)Set minUpdateIndex for the reftable. |
| public DfsPackDescription | Returns: thisnumber of objects in the pack. cnt)Set number of objects in the pack. |
| public DfsPackDescription | Returns: thisthe source of the pack. sourceSet the source of the pack. |
| pack-priv DfsPackDescription | |
| pack-priv void | |
| public String |
| blockSizeMap | back to summary |
|---|---|
| private int[] blockSizeMap | |
| commitGraphStats | back to summary |
|---|---|
| private CommitGraphWriter. | |
| deltaCount | back to summary |
|---|---|
| private long deltaCount | |
| estimatedPackSize | back to summary |
|---|---|
| private long estimatedPackSize | |
| extensions | back to summary |
|---|---|
| private int extensions | |
| indexVersion | back to summary |
|---|---|
| private int indexVersion | |
| lastModified | back to summary |
|---|---|
| private long lastModified | |
| maxUpdateIndex | back to summary |
|---|---|
| private long maxUpdateIndex | |
| minUpdateIndex | back to summary |
|---|---|
| private long minUpdateIndex | |
| objectCount | back to summary |
|---|---|
| private long objectCount | |
| packName | back to summary |
|---|---|
| private final String packName | |
| packSource | back to summary |
|---|---|
| private DfsObjDatabase. | |
| packStats | back to summary |
|---|---|
| private PackStatistics packStats | |
| refStats | back to summary |
|---|---|
| private ReftableWriter. | |
| repoDesc | back to summary |
|---|---|
| private final DfsRepositoryDescription repoDesc | |
| sizeMap | back to summary |
|---|---|
| private long[] sizeMap | |
| DfsPackDescription | back to summary |
|---|---|
| public DfsPackDescription(DfsRepositoryDescription repoDesc, String name, DfsObjDatabase. Initialize a description by pack name and repository.
The corresponding index file is assumed to exist. If this is not true
implementors must extend the class and override
Callers should also try to fill in other fields if they are reasonably free to access at the time this instance is being initialized.
| |
| addFileExt | back to summary |
|---|---|
| public void addFileExt(PackExt ext) Adds the pack file extension to the known list.
| |
| clearPackStats | back to summary |
|---|---|
| public DfsPackDescription clearPackStats() Discard the pack statistics, if it was populated.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object b) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize(PackExt ext) Get blockSize of the file, in bytes.
| |
| getCommitGraphStats | back to summary |
|---|---|
| public CommitGraphWriter. Get stats from the sibling commit graph, if created.
| |
| getDeltaCount | back to summary |
|---|---|
| public long getDeltaCount() Get number of delta compressed objects in the pack.
| |
| getEstimatedPackSize | back to summary |
|---|---|
| public long getEstimatedPackSize() Get estimated size of the .pack file in bytes.
| |
| getFileName | back to summary |
|---|---|
| public String getFileName(PackExt ext) Get file name | |
| getFileSize | back to summary |
|---|---|
| public long getFileSize(PackExt ext) Get size of the file, in bytes.
| |
| getIndexVersion | back to summary |
|---|---|
| public int getIndexVersion() Get the version of the index file written.
| |
| getLastModified | back to summary |
|---|---|
| public long getLastModified() Get time the pack was created, in milliseconds.
| |
| getMaxUpdateIndex | back to summary |
|---|---|
| public long getMaxUpdateIndex() Get maxUpdateIndex for the reftable, if present.
| |
| getMinUpdateIndex | back to summary |
|---|---|
| public long getMinUpdateIndex() Get minUpdateIndex for the reftable, if present.
| |
| getObjectCount | back to summary |
|---|---|
| public long getObjectCount() Get number of objects in the pack.
| |
| getPackSource | back to summary |
|---|---|
| public DfsObjDatabase. Get the source of the pack.
| |
| getPackStats | back to summary |
|---|---|
| public PackStatistics getPackStats() Get statistics from PackWriter, if the pack was built with it.
| |
| getReftableStats | back to summary |
|---|---|
| public ReftableWriter. Get stats from the sibling reftable, if created.
| |
| getRepositoryDescription | back to summary |
|---|---|
| public DfsRepositoryDescription getRepositoryDescription() Get description of the repository.
| |
| getStreamKey | back to summary |
|---|---|
| public DfsStreamKey getStreamKey(PackExt ext) Get cache key for use by the block cache.
| |
| hasFileExt | back to summary |
|---|---|
| public boolean hasFileExt(PackExt ext) Whether the pack file extension is known to exist.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isGC | back to summary |
|---|---|
| pack-priv static boolean isGC(DfsObjDatabase. | |
| objectLookupComparator | back to summary |
|---|---|
| public static Comparator Comparator for packs when looking up objects in indexes. This comparator tries to position packs in the order readers should examine them when looking for objects by SHA-1. The default tries to sort packs with more recent modification dates before older packs, and packs with fewer objects before packs with more objects.
Uses
| |
| objectLookupComparator | back to summary |
|---|---|
| public static Comparator Comparator for packs when looking up objects in indexes. This comparator tries to position packs in the order readers should examine them when looking for objects by SHA-1. The default tries to sort packs with more recent modification dates before older packs, and packs with fewer objects before packs with more objects.
| |
| reftableComparator | back to summary |
|---|---|
| pack-priv static Comparator | |
| reuseComparator | back to summary |
|---|---|
| pack-priv static Comparator | |
| setBlockSize | back to summary |
|---|---|
| public DfsPackDescription setBlockSize(PackExt ext, int blockSize) Set blockSize of the file, in bytes.
| |
| setCommitGraphStats | back to summary |
|---|---|
| pack-priv void setCommitGraphStats(CommitGraphWriter. | |
| setDeltaCount | back to summary |
|---|---|
| public DfsPackDescription setDeltaCount(long cnt) Set number of delta compressed objects in the pack.
| |
| setEstimatedPackSize | back to summary |
|---|---|
| public DfsPackDescription setEstimatedPackSize(long estimatedPackSize) Set estimated size of the .pack file in bytes.
| |
| setFileSize | back to summary |
|---|---|
| public DfsPackDescription setFileSize(PackExt ext, long bytes) Set size of the file in bytes.
| |
| setIndexVersion | back to summary |
|---|---|
| public DfsPackDescription setIndexVersion(int version) Set the version of the index file written.
| |
| setLastModified | back to summary |
|---|---|
| public DfsPackDescription setLastModified(long timeMillis) Set time the pack was created, in milliseconds.
| |
| setMaxUpdateIndex | back to summary |
|---|---|
| public DfsPackDescription setMaxUpdateIndex(long max) Set maxUpdateIndex for the reftable.
| |
| setMinUpdateIndex | back to summary |
|---|---|
| public DfsPackDescription setMinUpdateIndex(long min) Set minUpdateIndex for the reftable.
| |
| setObjectCount | back to summary |
|---|---|
| public DfsPackDescription setObjectCount(long cnt) Set number of objects in the pack.
| |
| setPackSource | back to summary |
|---|---|
| public DfsPackDescription setPackSource(DfsObjDatabase. Set the source of the pack.
| |
| setPackStats | back to summary |
|---|---|
| pack-priv DfsPackDescription setPackStats(PackStatistics stats) | |
| setReftableStats | back to summary |
|---|---|
| pack-priv void setReftableStats(ReftableWriter. | |
| 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- | |