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 void
Forget the reuse information previously stored.void
Remember 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, toString
Methods inherited from class org.eclipse.jgit.transport.PackedObjectInfo
getCRC, getOffset, setCRC, setOffset, setType
Methods 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:
clearReuseAsIs
in 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.
PackWriter
may invoke this method multiple times for the same object, each time saving the current best representation found.- Overrides:
select
in classObjectToPack
- Parameters:
ref
- the object representation.
-