Class LocalObjectToPack
java.lang.Object
org.eclipse.jgit.lib.AnyObjectId
org.eclipse.jgit.lib.ObjectId
org.eclipse.jgit.lib.ObjectIdOwnerMap.Entry
org.eclipse.jgit.transport.PackedObjectInfo
org.eclipse.jgit.internal.storage.pack.ObjectToPack
org.eclipse.jgit.internal.storage.file.LocalObjectToPack
- All Implemented Interfaces:
Serializable,Comparable<AnyObjectId>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidForget the reuse information previously stored.voidRemember a specific representation for reuse at a later time.Methods inherited from class org.eclipse.jgit.internal.storage.pack.ObjectToPack
clearExtendedFlag, getDeltaBase, getDeltaBaseId, getExtendedFlags, getType, isDeltaRepresentation, isExtendedFlag, isReuseAsIs, isWritten, setExtendedFlag, setExtendedFlags, toStringMethods inherited from class org.eclipse.jgit.transport.PackedObjectInfo
getCRC, getOffset, setCRC, setOffset, setTypeMethods inherited from class org.eclipse.jgit.lib.ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
-
Field Details
-
Constructor Details
-
LocalObjectToPack
LocalObjectToPack(AnyObjectId src, int type)
-
-
Method Details
-
clearReuseAsIs
protected void clearReuseAsIs()Forget the reuse information previously stored.Implementations may subclass this method, but they must also invoke the super version with
super.clearReuseAsIs()to ensure the flag is properly cleared for the writer.- Overrides:
clearReuseAsIsin classObjectToPack
-
select
Remember a specific representation for reuse at a later time.Implementers should remember the representation chosen, so it can be reused at a later time.
PackWritermay invoke this method multiple times for the same object, each time saving the current best representation found.- Overrides:
selectin classObjectToPack- Parameters:
ref- the object representation.
-