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:
java.io.Serializable
,java.lang.Comparable<AnyObjectId>
class LocalObjectToPack extends ObjectToPack
-
-
Constructor Summary
Constructors Constructor Description LocalObjectToPack(AnyObjectId src, int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearReuseAsIs()
Forget the reuse information previously stored.void
select(StoredObjectRepresentation ref)
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
-
-
-
-
Constructor Detail
-
LocalObjectToPack
LocalObjectToPack(AnyObjectId src, int type)
-
-
Method Detail
-
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
public void select(StoredObjectRepresentation ref)
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.
-
-