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 ObjectId
private long
(package private) long
(package private) long
(package private) Pack
Fields 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.int
Get relative size of this object's packed form.(package private) static LocalObjectRepresentation
(package private) static LocalObjectRepresentation
(package private) static LocalObjectRepresentation
Methods 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:
getWeight
in classStoredObjectRepresentation
- Returns:
- relative size of this object's packed form. The special value
StoredObjectRepresentation.WEIGHT_UNKNOWN
can 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:
getDeltaBase
in 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
.
-