Package | Description |
---|---|
org.eclipse.jgit.internal.storage.file |
File based repository storage.
|
Modifier and Type | Field and 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 by
SORT . |
(package private) PackFile |
DeltaBaseCache.Slot.provider |
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<PackFile> |
PackFile.SORT
Sorts PackFiles to be most recently created to least recently created.
|
Modifier and Type | Method and Description |
---|---|
PackFile |
WindowCache.PageRef.getPack()
Get the packfile the referenced cache page is allocated for
|
PackFile |
WindowCache.SoftRef.getPack() |
PackFile |
WindowCache.StrongRef.getPack() |
PackFile |
ObjectDirectoryPackParser.getPackFile()
Get the imported
PackFile . |
private PackFile |
LocalCachedPack.getPackFile(java.lang.String packName) |
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) |
Modifier and Type | Method and Description |
---|---|
private java.util.Collection<PackFile> |
GC.doGc() |
java.util.Collection<PackFile> |
GC.gc()
Runs a garbage collector on a
FileRepository . |
(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) |
Modifier and Type | Method and 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) |
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 at
position . |
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 bytes
|
void |
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) |
Modifier and Type | Method and Description |
---|---|
private void |
GC.deleteOldPacks(java.util.Collection<PackFile> oldPacks,
java.util.Collection<PackFile> newPacks)
Delete old pack files.
|
private void |
GC.deleteOldPacks(java.util.Collection<PackFile> oldPacks,
java.util.Collection<PackFile> newPacks)
Delete old pack files.
|
Constructor and 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 and Description |
---|
LocalCachedPack(java.util.List<PackFile> packs) |