Class DfsObjectRepresentation
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation
-
- org.eclipse.jgit.internal.storage.dfs.DfsObjectRepresentation
-
class DfsObjectRepresentation extends StoredObjectRepresentation
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ObjectIdbaseId(package private) intformat(package private) longlength(package private) longoffset(package private) DfsPackFilepack-
Fields inherited from class org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation
FORMAT_OTHER, PACK_DELTA, PACK_WHOLE, WEIGHT_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description DfsObjectRepresentation(DfsPackFile pack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectIdgetDeltaBase()Get identity of the object this delta applies to in order to recover the original object content.intgetFormat()Get the storage format typeintgetWeight()Get relative size of this object's packed form.booleanwasDeltaAttempted()Whether the current representation of the object has had delta compression attempted on it.
-
-
-
Field Detail
-
pack
final DfsPackFile pack
-
format
int format
-
offset
long offset
-
length
long length
-
baseId
ObjectId baseId
-
-
Constructor Detail
-
DfsObjectRepresentation
DfsObjectRepresentation(DfsPackFile pack)
-
-
Method Detail
-
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
public ObjectId 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.
-
-