Class DfsObjectRepresentation
java.lang.Object
org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation
org.eclipse.jgit.internal.storage.dfs.DfsObjectRepresentation
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ObjectId(package private) int(package private) long(package private) long(package private) final DfsPackFileFields inherited from class org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation
FORMAT_OTHER, PACK_DELTA, PACK_WHOLE, WEIGHT_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet identity of the object this delta applies to in order to recover the original object content.intGet the storage format typeintGet relative size of this object's packed form.booleanWhether the current representation of the object has had delta compression attempted on it.
-
Field Details
-
pack
-
format
int format -
offset
long offset -
length
long length -
baseId
ObjectId baseId
-
-
Constructor Details
-
DfsObjectRepresentation
DfsObjectRepresentation(DfsPackFile pack)
-
-
Method Details
-
getFormat
public int getFormat()Get the storage format type- Overrides:
getFormatin classStoredObjectRepresentation- Returns:
- the storage format type, which must be one of
StoredObjectRepresentation.PACK_DELTA,StoredObjectRepresentation.PACK_WHOLE, orStoredObjectRepresentation.FORMAT_OTHER.
-
getWeight
public int getWeight()Get relative size of this object's packed form.- Overrides:
getWeightin classStoredObjectRepresentation- Returns:
- relative size of this object's packed form. The special value
StoredObjectRepresentation.WEIGHT_UNKNOWNcan be returned to indicate the implementation doesn't know, or cannot supply the weight up front.
-
getDeltaBase
Get identity of the object this delta applies to in order to recover the original object content.- Overrides:
getDeltaBasein classStoredObjectRepresentation- Returns:
- identity of the object this delta applies to in order to recover
the original object content. This method should only be called if
StoredObjectRepresentation.getFormat()returnedStoredObjectRepresentation.PACK_DELTA.
-
wasDeltaAttempted
public boolean wasDeltaAttempted()Whether the current representation of the object has had delta compression attempted on it.- Overrides:
wasDeltaAttemptedin classStoredObjectRepresentation- Returns:
- whether the current representation of the object has had delta compression attempted on it.
-