Top Description Fields Constructors Methods
org.eclipse.jgit.internal.storage.dfs

pack-priv Class DfsObjectToPack

extends ObjectToPack
Class Inheritance
Imports
org.eclipse.jgit.internal.storage.pack.ObjectToPack, .StoredObjectRepresentation, org.eclipse.jgit.lib.AnyObjectId

ObjectToPack for DfsObjDatabase.

Field Summary

Modifier and TypeField and Description
private static final int
pack-priv long
length

Length of the data section of the object.

pack-priv long
offset

Hides org.eclipse.jgit.transport.PackedObjectInfo.offset.

Offset of the object's header in pack.
pack-priv DfsPackFile
pack

Pack to reuse compressed data from, otherwise null.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
clearReuseAsIs()

Overrides org.eclipse.jgit.internal.storage.pack.ObjectToPack.clearReuseAsIs.

Forget the reuse information previously stored.

pack-priv final boolean
public void
select(StoredObjectRepresentation
the object representation.
ref
)

Overrides org.eclipse.jgit.internal.storage.pack.ObjectToPack.select.

Remember a specific representation for reuse at a later time.

pack-priv final void
Inherited from org.eclipse.jgit.internal.storage.pack.ObjectToPack:
clearExtendedFlaggetDeltaBasegetDeltaBaseIdgetExtendedFlagsgetTypeisDeltaRepresentationisExtendedFlagisReuseAsIsisWrittensetExtendedFlagsetExtendedFlagstoString

Field Detail

FLAG_FOUNDback to summary
private static final int FLAG_FOUND
lengthback to summary
pack-priv long length

Length of the data section of the object.

offsetback to summary
pack-priv long offset

Hides org.eclipse.jgit.transport.PackedObjectInfo.offset.

Offset of the object's header in pack.

packback to summary
pack-priv DfsPackFile pack

Pack to reuse compressed data from, otherwise null.

Constructor Detail

DfsObjectToPackback to summary
pack-priv DfsObjectToPack(AnyObjectId src, int type)

Method Detail

clearReuseAsIsback to summary
protected void clearReuseAsIs()

Overrides org.eclipse.jgit.internal.storage.pack.ObjectToPack.clearReuseAsIs.

Doc from org.eclipse.jgit.internal.storage.pack.ObjectToPack.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.

Annotations
@Override
isFoundback to summary
pack-priv final boolean isFound()
selectback to summary
public void select(StoredObjectRepresentation ref)

Overrides org.eclipse.jgit.internal.storage.pack.ObjectToPack.select.

Doc from org.eclipse.jgit.internal.storage.pack.ObjectToPack.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. org.eclipse.jgit.internal.storage.pack.PackWriter may invoke this method multiple times for the same object, each time saving the current best representation found.

Parameters
ref:StoredObjectRepresentation

the object representation.

Annotations
@Override
setFoundback to summary
pack-priv final void setFound()