Uses of Class
org.eclipse.jgit.internal.storage.file.PackFile
-
Packages that use PackFile Package Description org.eclipse.jgit.internal.storage.file File based repository storage. -
-
Uses of PackFile in org.eclipse.jgit.internal.storage.file
Fields in org.eclipse.jgit.internal.storage.file declared as PackFile Modifier and Type Field Description private PackFile
ObjectDirectoryPackParser. newPack
The pack that was created, if parsing was successful.protected PackFile
ByteWindow. pack
private PackFile
LargePackedWholeObject. pack
(package private) PackFile
LocalObjectRepresentation. pack
(package private) PackFile
LocalObjectToPack. pack
Pack to reuse compressed data from, otherwise null.private PackFile
PackInputStream. pack
private PackFile
WindowCache.SoftRef. pack
private PackFile
WindowCache.StrongRef. pack
private PackFile[]
LocalCachedPack. packs
(package private) PackFile[]
ObjectDirectory.PackList. packs
All known packs, sorted bySORT
.(package private) PackFile
DeltaBaseCache.Slot. provider
Fields in org.eclipse.jgit.internal.storage.file with type parameters of type PackFile Modifier and Type Field Description static java.util.Comparator<PackFile>
PackFile. SORT
Sorts PackFiles to be most recently created to least recently created.Methods in org.eclipse.jgit.internal.storage.file that return PackFile Modifier and Type Method Description PackFile
WindowCache.PageRef. getPack()
Get the packfile the referenced cache page is allocated forPackFile
WindowCache.SoftRef. getPack()
PackFile
WindowCache.StrongRef. getPack()
private PackFile
LocalCachedPack. getPackFile(java.lang.String packName)
PackFile
ObjectDirectoryPackParser. getPackFile()
Get the importedPackFile
.private PackFile[]
LocalCachedPack. getPacks()
(package private) PackFile
CachedObjectDirectory. openPack(java.io.File pack)
(package private) abstract PackFile
FileObjectDatabase. openPack(java.io.File pack)
PackFile
ObjectDirectory. openPack(java.io.File pack)
private PackFile
GC. writePack(java.util.Set<? extends ObjectId> want, java.util.Set<? extends ObjectId> have, java.util.Set<ObjectId> tags, java.util.Set<ObjectId> tagTargets, java.util.List<ObjectIdSet> excludeObjects)
Methods in org.eclipse.jgit.internal.storage.file that return types with arguments of type PackFile Modifier and Type Method Description private java.util.Collection<PackFile>
GC. doGc()
java.util.Collection<PackFile>
GC. gc()
Runs a garbage collector on aFileRepository
.(package private) java.util.Collection<PackFile>
CachedObjectDirectory. getPacks()
(package private) abstract java.util.Collection<PackFile>
FileObjectDatabase. getPacks()
java.util.Collection<PackFile>
ObjectDirectory. getPacks()
java.util.Collection<PackFile>
GC. repack()
Packs all objects which reachable from any of the heads into one pack file.private static java.util.Map<java.lang.String,PackFile>
ObjectDirectory. reuseMap(ObjectDirectory.PackList old)
Methods in org.eclipse.jgit.internal.storage.file with parameters of type PackFile Modifier and Type Method Description private void
WindowCache. close(PackFile pack)
(package private) boolean
ByteWindow. contains(PackFile neededFile, long neededPos)
(package private) int
WindowCursor. copy(PackFile pack, long position, byte[] dstbuf, int dstoff, int cnt)
Copy bytes from the window to a caller supplied buffer.(package private) void
WindowCursor. copyPackAsIs(PackFile pack, long length, PackOutputStream out)
private WindowCache.PageRef<ByteWindow>
WindowCache. createRef(PackFile p, long o, ByteWindow v)
(package private) DeltaBaseCache.Entry
DeltaBaseCache. get(PackFile pack, long position)
(package private) static ByteWindow
WindowCache. get(PackFile pack, long offset)
private ByteWindow
WindowCache. getOrLoad(PackFile pack, long position)
Lookup a cached object, creating and loading it if it doesn't exist.private void
ObjectDirectory. handlePackError(java.io.IOException e, PackFile p)
private static int
ObjectDirectory. indexOf(PackFile[] list, PackFile pack)
(package private) int
WindowCursor. inflate(PackFile pack, long position, byte[] dstbuf, boolean headerOnly)
Inflate a region of the pack starting atposition
.private void
ObjectDirectory. insertPack(PackFile pf)
private ByteWindow
WindowCache. load(PackFile pack, long offset)
private WindowCache.Lock
WindowCache. lock(PackFile pack, long position)
private void
GC. loosen(ObjectDirectoryInserter inserter, ObjectReader reader, PackFile pack, java.util.HashSet<ObjectId> existing)
Loosen objects in a pack file which are not also in the newly-created pack files.(package private) static LocalObjectRepresentation
LocalObjectRepresentation. newDelta(PackFile f, long p, long n, long base)
(package private) static LocalObjectRepresentation
LocalObjectRepresentation. newDelta(PackFile f, long p, long n, ObjectId base)
(package private) static LocalObjectRepresentation
LocalObjectRepresentation. newWhole(PackFile f, long p, long length)
(package private) void
WindowCursor. pin(PackFile pack, long position)
(package private) static void
WindowCache. purge(PackFile pack)
(package private) ByteArrayWindow
WindowCursor. quickCopy(PackFile p, long pos, long cnt)
void
WindowCache.StatsRecorder. recordOpenBytes(PackFile pack, int delta)
Record cached bytesvoid
WindowCache.StatsRecorderImpl. recordOpenBytes(PackFile pack, int delta)
private void
WindowCache. removeAll(PackFile pack)
Clear all entries related to a single file.private void
ObjectDirectory. removePack(PackFile deadPack)
private static java.lang.String
WindowCache.StatsRecorderImpl. repositoryId(PackFile pack)
private ByteWindow
WindowCache. scan(WindowCache.Entry n, PackFile pack, long position)
private int
WindowCache. slot(PackFile pack, long position)
(package private) void
DeltaBaseCache. store(PackFile pack, long position, byte[] data, int objectType)
Method parameters in org.eclipse.jgit.internal.storage.file with type arguments of type PackFile Modifier and Type Method Description private void
GC. deleteOldPacks(java.util.Collection<PackFile> oldPacks, java.util.Collection<PackFile> newPacks)
Delete old pack files.Constructors in org.eclipse.jgit.internal.storage.file with parameters of type PackFile Constructor Description ByteArrayWindow(PackFile pack, long o, byte[] b)
ByteBufferWindow(PackFile pack, long o, java.nio.ByteBuffer b)
ByteWindow(PackFile p, long s, int n)
Constructor for ByteWindow.LargePackedWholeObject(int type, long size, long objectOffset, int headerLength, PackFile pack, FileObjectDatabase db)
PackInputStream(PackFile pack, long pos, WindowCursor wc)
PackList(FileSnapshot monitor, PackFile[] packs)
SoftRef(PackFile pack, long position, ByteWindow v, WindowCache.SoftCleanupQueue queue)
StrongRef(PackFile pack, long position, ByteWindow v, WindowCache.CleanupQueue queue)
Constructor parameters in org.eclipse.jgit.internal.storage.file with type arguments of type PackFile Constructor Description LocalCachedPack(java.util.List<PackFile> packs)
-