Class DfsObjectToPack
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.dfs.DfsObjectToPack
- All Implemented Interfaces:
Serializable
,Comparable<AnyObjectId>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
(package private) long
Length of the data section of the object.(package private) long
Offset of the object's header inpack
.(package private) DfsPackFile
Pack to reuse compressed data from, otherwise null. -
Constructor Summary
Constructors -
Method Summary
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
-
FLAG_FOUND
private static final int FLAG_FOUND- See Also:
-
pack
DfsPackFile packPack to reuse compressed data from, otherwise null. -
offset
long offsetOffset of the object's header inpack
. -
length
long lengthLength of the data section of the object.
-
-
Constructor Details
-
DfsObjectToPack
DfsObjectToPack(AnyObjectId src, int type)
-
-
Method Details
-
isFound
final boolean isFound() -
setFound
final void setFound() -
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.
-