Top Inners Fields Constructors Methods
org.eclipse.jgit.internal.storage.file

pack-priv Class LocalObjectRepresentation

extends StoredObjectRepresentation
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.internal.storage.file.LocalObjectRepresentation.Delta
Imports
java.io.IOException, org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation, org.eclipse.jgit.lib.ObjectId

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private ObjectId
private long
pack-priv long
pack-priv long
pack-priv Pack
Inherited from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation:
FORMAT_OTHERPACK_DELTAPACK_WHOLEWEIGHT_UNKNOWN

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ObjectId
getDeltaBase()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getDeltaBase.

Get identity of the object this delta applies to in order to recover the original object content.

public int
getWeight()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getWeight.

Get relative size of this object's packed form.

pack-priv static LocalObjectRepresentation
newDelta(Pack pack, long offset, long length, ObjectId base)

pack-priv static LocalObjectRepresentation
newDelta(Pack pack, long offset, long length, long base)

pack-priv static LocalObjectRepresentation
newWhole(Pack pack, long offset, long length)

Inherited from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation:
getFormatwasDeltaAttempted

Field Detail

baseIdback to summary
private ObjectId baseId
baseOffsetback to summary
private long baseOffset
lengthback to summary
pack-priv long length
offsetback to summary
pack-priv long offset
packback to summary
pack-priv Pack pack

Constructor Detail

LocalObjectRepresentationback to summary
pack-priv LocalObjectRepresentation()

Method Detail

getDeltaBaseback to summary
public ObjectId getDeltaBase()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getDeltaBase.

Doc from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getDeltaBase.

Get identity of the object this delta applies to in order to recover the original object content.

Returns:ObjectId

identity of the object this delta applies to in order to recover the original object content. This method should only be called if getFormat() returned PACK_DELTA.

Annotations
@Override
getWeightback to summary
public int getWeight()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getWeight.

Doc from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getWeight.

Get relative size of this object's packed form.

Returns:int

relative size of this object's packed form. The special value WEIGHT_UNKNOWN can be returned to indicate the implementation doesn't know, or cannot supply the weight up front.

Annotations
@Override
newDeltaback to summary
pack-priv static LocalObjectRepresentation newDelta(Pack pack, long offset, long length, ObjectId base)
newDeltaback to summary
pack-priv static LocalObjectRepresentation newDelta(Pack pack, long offset, long length, long base)
newWholeback to summary
pack-priv static LocalObjectRepresentation newWhole(Pack pack, long offset, long length)
org.eclipse.jgit.internal.storage.file back to summary

private final Class LocalObjectRepresentation.Delta

extends LocalObjectRepresentation
Class Inheritance

Field Summary

Inherited from org.eclipse.jgit.internal.storage.file.LocalObjectRepresentation:
lengthoffsetpack

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
Inherited from org.eclipse.jgit.internal.storage.file.LocalObjectRepresentation:
getDeltaBasegetWeightnewDeltanewDeltanewWhole

Constructor Detail

Deltaback to summary
private Delta()

Method Detail

getFormatback to summary
public int getFormat()

Overrides org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getFormat.

Doc from org.eclipse.jgit.internal.storage.pack.StoredObjectRepresentation.getFormat.

Get the storage format type

Returns:int

the storage format type, which must be one of PACK_DELTA, PACK_WHOLE, or FORMAT_OTHER.

Annotations
@Override