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

pack-priv Class DfsObjectRepresentation

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

Field Summary

Modifier and TypeField and Description
pack-priv ObjectId
pack-priv int
pack-priv long
pack-priv long
pack-priv final DfsPackFile
Inherited from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation:
FORMAT_OTHERPACK_DELTAPACK_WHOLEWEIGHT_UNKNOWN

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ObjectId
getDeltaBase()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getDeltaBase.

Get identity of the object this delta applies to in order to recover the original object content.

public int
public int
getWeight()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getWeight.

Get relative size of this object's packed form.

public boolean
wasDeltaAttempted()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.wasDeltaAttempted.

Whether the current representation of the object has had delta compression attempted on it.

Field Detail

baseIdback to summary
pack-priv ObjectId baseId
formatback to summary
pack-priv int format
lengthback to summary
pack-priv long length
offsetback to summary
pack-priv long offset
packback to summary
pack-priv final DfsPackFile pack

Constructor Detail

DfsObjectRepresentationback to summary
pack-priv DfsObjectRepresentation(DfsPackFile pack)

Method Detail

getDeltaBaseback to summary
public ObjectId getDeltaBase()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getDeltaBase.

Doc from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getDeltaBase.

Get identity of the object this delta applies to in order to recover the original object content.

Returns:ObjectId

identity of the object this delta applies to in order to recover the original object content. This method should only be called if getFormat() returned PACK_DELTA.

Annotations
@Override
getFormatback to summary
public int getFormat()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getFormat.

Doc from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getFormat.

Get the storage format type

Returns:int

the storage format type, which must be one of PACK_DELTA, PACK_WHOLE, or FORMAT_OTHER.

Annotations
@Override
getWeightback to summary
public int getWeight()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getWeight.

Doc from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getWeight.

Get relative size of this object's packed form.

Returns:int

relative size of this object's packed form. The special value WEIGHT_UNKNOWN can be returned to indicate the implementation doesn't know, or cannot supply the weight up front.

Annotations
@Override
wasDeltaAttemptedback to summary
public boolean wasDeltaAttempted()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.wasDeltaAttempted.

Doc from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.wasDeltaAttempted.

Whether the current representation of the object has had delta compression attempted on it.

Returns:boolean

whether the current representation of the object has had delta compression attempted on it.

Annotations
@Override