Class LocalObjectRepresentation
java.lang.Object
org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation
org.eclipse.jgit.internal.storage.file.LocalObjectRepresentation
- Direct Known Subclasses:
LocalObjectRepresentation.Delta
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ObjectIdprivate long(package private) long(package private) long(package private) PackFields 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.intGet relative size of this object's packed form.(package private) static LocalObjectRepresentation(package private) static LocalObjectRepresentation(package private) static LocalObjectRepresentationMethods inherited from class org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation
getFormat, wasDeltaAttempted
-
Field Details
-
pack
Pack pack -
offset
long offset -
length
long length -
baseOffset
private long baseOffset -
baseId
-
-
Constructor Details
-
LocalObjectRepresentation
LocalObjectRepresentation()
-
-
Method Details
-
newWhole
-
newDelta
-
newDelta
-
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
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.
-