Module org.eclipse.jgit
Interface PackObjectSizeIndex
-
public interface PackObjectSizeIndexIndex of object sizes in a pack It is not guaranteed that the implementation contains the sizes of all objects (e.g. it could store only objects over certain threshold).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetObjectCount()Number of objects in the indexlonggetSize(int idxOffset)Returns the inflated size of the object.intgetThreshold()Minimal size of an object to be included in this index Cut-off value used at generation time to decide what objects to index.
-
-
-
Method Detail
-
getSize
long getSize(int idxOffset)
Returns the inflated size of the object.- Parameters:
idxOffset- position in the pack (as returned from PackIndex)- Returns:
- size of the object, -1 if not found in the index.
-
getObjectCount
long getObjectCount()
Number of objects in the index- Returns:
- number of objects in the index
-
getThreshold
int getThreshold()
Minimal size of an object to be included in this index Cut-off value used at generation time to decide what objects to index.- Returns:
- size in bytes
-
-