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 DfsPackFile
Fields 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.int
Get the storage format typeint
Get relative size of this object's packed form.boolean
Whether 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:
getFormat
in 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:
getWeight
in classStoredObjectRepresentation
- Returns:
- relative size of this object's packed form. The special value
StoredObjectRepresentation.WEIGHT_UNKNOWN
can 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:
getDeltaBase
in 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:
wasDeltaAttempted
in classStoredObjectRepresentation
- Returns:
- whether the current representation of the object has had delta compression attempted on it.
-