Package | Description |
---|---|
org.eclipse.jgit.errors |
Exceptions thrown by lower-level JGit APIs.
|
org.eclipse.jgit.internal.storage.dfs |
Distributed file system based repository storage.
|
org.eclipse.jgit.internal.storage.file |
File based repository storage.
|
org.eclipse.jgit.internal.storage.pack |
Reading/writing Git pack files.
|
Constructor and Description |
---|
StoredObjectRepresentationNotAvailableException(ObjectToPack otp,
java.lang.Throwable cause)
Construct an error for an object.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DfsObjectToPack
|
Modifier and Type | Method and Description |
---|---|
void |
DfsReader.copyObjectAsIs(PackOutputStream out,
ObjectToPack otp,
boolean validate)
Output a previously selected representation.
|
boolean |
DfsCachedPack.hasObject(ObjectToPack obj,
StoredObjectRepresentation rep)
Determine if this pack contains the object representation given.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
DfsReader.checkGarbagePacks(java.lang.Iterable<ObjectToPack> objects) |
private java.util.List<DfsObjectToPack> |
DfsReader.findAllFromPack(DfsPackFile pack,
java.lang.Iterable<ObjectToPack> objects,
boolean skipFound) |
void |
DfsReader.selectObjectRepresentation(PackWriter packer,
ProgressMonitor monitor,
java.lang.Iterable<ObjectToPack> objects) |
private void |
DfsReader.trySelectRepresentation(PackWriter packer,
ProgressMonitor monitor,
java.lang.Iterable<ObjectToPack> objects,
java.util.List<DfsPackFile> packs,
boolean skipFound) |
void |
DfsReader.writeObjects(PackOutputStream out,
java.util.List<ObjectToPack> list)
Write objects to the pack stream in roughly the order given.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
LocalObjectToPack
|
Modifier and Type | Method and Description |
---|---|
private void |
PackFile.beginCopyAsIs(ObjectToPack otp) |
void |
WindowCursor.copyObjectAsIs(PackOutputStream out,
ObjectToPack otp,
boolean validate)
Output a previously selected representation.
|
boolean |
LocalCachedPack.hasObject(ObjectToPack obj,
StoredObjectRepresentation rep)
Determine if this pack contains the object representation given.
|
(package private) void |
ObjectDirectory.selectObjectRepresentation(PackWriter packer,
ObjectToPack otp,
WindowCursor curs) |
(package private) abstract void |
FileObjectDatabase.selectObjectRepresentation(PackWriter packer,
ObjectToPack otp,
WindowCursor curs) |
(package private) void |
CachedObjectDirectory.selectObjectRepresentation(PackWriter packer,
ObjectToPack otp,
WindowCursor curs) |
private void |
ObjectDirectory.selectObjectRepresentation(PackWriter packer,
ObjectToPack otp,
WindowCursor curs,
java.util.Set<ObjectDirectory.AlternateHandle.Id> skips) |
Modifier and Type | Method and Description |
---|---|
void |
WindowCursor.selectObjectRepresentation(PackWriter packer,
ProgressMonitor monitor,
java.lang.Iterable<ObjectToPack> objects)
Select the best object representation for a packer.
|
private static void |
PackBitmapIndexBuilder.sortByOffsetAndIndex(BlockList<PackBitmapIndexBuilder.PositionEntry> byOffset,
ObjectIdOwnerMap<PackBitmapIndexBuilder.PositionEntry> positionEntries,
java.util.List<ObjectToPack> entries) |
void |
WindowCursor.writeObjects(PackOutputStream out,
java.util.List<ObjectToPack> list)
Write objects to the pack stream in roughly the order given.
|
Constructor and Description |
---|
PackBitmapIndexBuilder(java.util.List<ObjectToPack> objects)
Creates a PackBitmapIndex used for building the contents of an index
file.
|
Modifier and Type | Field and Description |
---|---|
(package private) ObjectToPack[] |
DeltaTask.Block.list |
(package private) ObjectToPack |
DeltaWindowEntry.object |
private ObjectToPack[] |
DeltaWindow.toSearch |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ObjectToPack> |
PackWriter.edgeObjects |
private java.util.List<ObjectToPack> |
BaseSearch.edgeObjects |
private ObjectIdOwnerMap<ObjectToPack> |
PackWriter.objectsMap |
private ObjectIdOwnerMap<ObjectToPack> |
BaseSearch.objectsMap |
private java.util.List<ObjectToPack> |
PackWriter.sortedByName |
Modifier and Type | Method and Description |
---|---|
ObjectToPack |
PackWriter.get(AnyObjectId id)
Lookup the ObjectToPack object for a given ObjectId.
|
ObjectToPack |
ObjectToPack.getDeltaBase()
Get delta base object to pack if object is going to be packed in delta
representation and delta is specified as object to pack
|
ObjectToPack |
ObjectReuseAsIs.newObjectToPack(AnyObjectId objectId,
int type)
Allocate a new
PackWriter state structure for an object. |
Modifier and Type | Method and Description |
---|---|
private java.util.List<ObjectToPack> |
PackWriter.sortByName() |
Modifier and Type | Method and Description |
---|---|
private void |
DeltaWindow.cacheDelta(ObjectToPack srcObj,
ObjectToPack resObj) |
(package private) boolean |
ThreadSafeDeltaCache.canCache(int length,
ObjectToPack src,
ObjectToPack res) |
(package private) boolean |
DeltaCache.canCache(int length,
ObjectToPack src,
ObjectToPack res) |
void |
ObjectReuseAsIs.copyObjectAsIs(PackOutputStream out,
ObjectToPack otp,
boolean validate)
Output a previously selected representation.
|
private TemporaryBuffer.Heap |
PackWriter.delta(ObjectToPack otp) |
private static long |
DeltaWindow.estimateSize(ObjectToPack ent) |
private int |
PackWriter.findObjectsNeedingDelta(ObjectToPack[] list,
int cnt,
int type) |
(package private) static int |
DeltaTask.getAdjustedWeight(ObjectToPack o) |
abstract boolean |
CachedPack.hasObject(ObjectToPack obj,
StoredObjectRepresentation rep)
Determine if this pack contains the object representation given.
|
private boolean |
PackWriter.have(ObjectToPack ptr,
AnyObjectId objectId) |
private void |
PackWriter.parallelDeltaSearch(ProgressMonitor monitor,
ObjectToPack[] list,
int cnt,
int threads) |
private void |
PackWriter.reselectNonDelta(ObjectToPack otp) |
private boolean |
PackWriter.reuseDeltaFor(ObjectToPack otp) |
private void |
PackWriter.searchForDeltas(ProgressMonitor monitor,
ObjectToPack[] list,
int cnt) |
void |
PackWriter.select(ObjectToPack otp,
StoredObjectRepresentation next)
Select an object representation for this writer.
|
(package private) void |
DeltaWindowEntry.set(ObjectToPack object) |
private void |
PackWriter.singleThreadDeltaSearch(ProgressMonitor monitor,
ObjectToPack[] list,
int cnt) |
private void |
PackWriter.writeBase(PackOutputStream out,
ObjectToPack base) |
private void |
PackWriter.writeDeltaObjectDeflate(PackOutputStream out,
ObjectToPack otp) |
void |
PackOutputStream.writeHeader(ObjectToPack otp,
long rawLength)
Commits the object header onto the stream.
|
void |
PackOutputStream.writeObject(ObjectToPack otp)
Write one object.
|
(package private) void |
PackWriter.writeObject(PackOutputStream out,
ObjectToPack otp) |
private void |
PackWriter.writeObjectImpl(PackOutputStream out,
ObjectToPack otp) |
private void |
PackWriter.writeWholeObjectDeflate(PackOutputStream out,
ObjectToPack otp) |
Modifier and Type | Method and Description |
---|---|
private void |
PackWriter.cutDeltaChains(BlockList<ObjectToPack> list) |
private static void |
PackWriter.pruneEdgesFromObjectList(java.util.List<ObjectToPack> list) |
private void |
PackWriter.searchForReuse(ProgressMonitor monitor,
java.util.List<ObjectToPack> list) |
void |
ObjectReuseAsIs.selectObjectRepresentation(PackWriter packer,
ProgressMonitor monitor,
java.lang.Iterable<ObjectToPack> objects)
Select the best object representation for a packer.
|
void |
ObjectReuseAsIs.writeObjects(PackOutputStream out,
java.util.List<ObjectToPack> list)
Write objects to the pack stream in roughly the order given.
|
private void |
PackWriter.writeObjects(PackOutputStream out,
java.util.List<ObjectToPack> list) |
Constructor and Description |
---|
Block(int threads,
PackConfig config,
ObjectReader reader,
DeltaCache dc,
ThreadSafeProgressMonitor pm,
ObjectToPack[] list,
int begin,
int end) |
DeltaWindow(PackConfig pc,
DeltaCache dc,
ObjectReader or,
ProgressMonitor pm,
long bpu,
ObjectToPack[] in,
int beginIndex,
int endIndex) |
Constructor and Description |
---|
BaseSearch(ProgressMonitor countingMonitor,
java.util.Set<RevTree> bases,
ObjectIdOwnerMap<ObjectToPack> objects,
java.util.List<ObjectToPack> edges,
ObjectReader or) |
BaseSearch(ProgressMonitor countingMonitor,
java.util.Set<RevTree> bases,
ObjectIdOwnerMap<ObjectToPack> objects,
java.util.List<ObjectToPack> edges,
ObjectReader or) |