public class StoredObjectRepresentation extends Object
PackWriter
can consider for
packing.Modifier and Type | Field and Description |
---|---|
static int |
FORMAT_OTHER
Only available after inflating to canonical format.
|
static int |
PACK_DELTA
Stored in pack format, as a delta to another object.
|
static int |
PACK_WHOLE
Stored in pack format, without delta.
|
static int |
WEIGHT_UNKNOWN
Special unknown value for
getWeight() . |
Constructor and Description |
---|
StoredObjectRepresentation() |
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.
|
public static final int WEIGHT_UNKNOWN
getWeight()
.public static final int PACK_DELTA
public static final int PACK_WHOLE
public static final int FORMAT_OTHER
public int getWeight()
WEIGHT_UNKNOWN
can be returned to indicate the
implementation doesn't know, or cannot supply the weight up
front.public int getFormat()
PACK_DELTA
, PACK_WHOLE
, or
FORMAT_OTHER
.public ObjectId getDeltaBase()
getFormat()
returned PACK_DELTA
.public boolean wasDeltaAttempted()
Copyright © 2020 Eclipse JGit Project. All rights reserved.