class DfsObjectRepresentation extends StoredObjectRepresentation
| Modifier and Type | Field and Description |
|---|---|
(package private) ObjectId |
baseId |
(package private) int |
format |
(package private) long |
length |
(package private) long |
offset |
(package private) DfsPackFile |
pack |
FORMAT_OTHER, PACK_DELTA, PACK_WHOLE, WEIGHT_UNKNOWN| Constructor and Description |
|---|
DfsObjectRepresentation(DfsPackFile pack) |
| Modifier and Type | Method and Description |
|---|---|
ObjectId |
getDeltaBase()
Get identity of the object this delta applies to in order to recover the
original object content.
|
int |
getFormat()
Get the storage format type
|
int |
getWeight()
Get relative size of this object's packed form.
|
boolean |
wasDeltaAttempted()
Whether the current representation of the object has had delta
compression attempted on it.
|
final DfsPackFile pack
int format
long offset
long length
ObjectId baseId
DfsObjectRepresentation(DfsPackFile pack)
public int getFormat()
getFormat in class StoredObjectRepresentationStoredObjectRepresentation.PACK_DELTA, StoredObjectRepresentation.PACK_WHOLE, or
StoredObjectRepresentation.FORMAT_OTHER.public int getWeight()
getWeight in class StoredObjectRepresentationStoredObjectRepresentation.WEIGHT_UNKNOWN can be returned to indicate the
implementation doesn't know, or cannot supply the weight up
front.public ObjectId getDeltaBase()
getDeltaBase in class StoredObjectRepresentationStoredObjectRepresentation.getFormat() returned StoredObjectRepresentation.PACK_DELTA.public boolean wasDeltaAttempted()
wasDeltaAttempted in class StoredObjectRepresentation