class LocalObjectRepresentation extends StoredObjectRepresentation
| Modifier and Type | Class and Description |
|---|---|
private static class |
LocalObjectRepresentation.Delta |
| Modifier and Type | Field and Description |
|---|---|
private ObjectId |
baseId |
private long |
baseOffset |
(package private) long |
length |
(package private) long |
offset |
(package private) PackFile |
pack |
FORMAT_OTHER, PACK_DELTA, PACK_WHOLE, WEIGHT_UNKNOWN| Constructor and Description |
|---|
LocalObjectRepresentation() |
| 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 |
getWeight()
Get relative size of this object's packed form.
|
(package private) static LocalObjectRepresentation |
newDelta(PackFile f,
long p,
long n,
long base) |
(package private) static LocalObjectRepresentation |
newDelta(PackFile f,
long p,
long n,
ObjectId base) |
(package private) static LocalObjectRepresentation |
newWhole(PackFile f,
long p,
long length) |
getFormat, wasDeltaAttemptedPackFile pack
long offset
long length
private long baseOffset
private ObjectId baseId
static LocalObjectRepresentation newWhole(PackFile f, long p, long length)
static LocalObjectRepresentation newDelta(PackFile f, long p, long n, ObjectId base)
static LocalObjectRepresentation newDelta(PackFile f, long p, long n, long base)
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.