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

pack-priv Class LocalObjectToPack

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

ObjectToPack for ObjectDirectory.

Field Summary

Modifier and TypeField and Description
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 Pack
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.

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.

Inherited from org.eclipse.jgit.internal.storage.pack.ObjectToPack:
clearExtendedFlaggetDeltaBasegetDeltaBaseIdgetExtendedFlagsgetTypeisDeltaRepresentationisExtendedFlagisReuseAsIsisWrittensetExtendedFlagsetExtendedFlagstoString

Field Detail

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 Pack pack

Pack to reuse compressed data from, otherwise null.

Constructor Detail

LocalObjectToPackback to summary
pack-priv LocalObjectToPack(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
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