Module org.eclipse.jgit
Interface DfsPackFileMidx.VOffsetCalculator
- Enclosing class:
- DfsPackFileMidx
protected static interface DfsPackFileMidx.VOffsetCalculator
Translates from midx-offset (considering all packs concatenated in midx
order) to (pack, offset) pair. This covers the whole midx chain.
- Implementation Note:
- implementations take care of the encoding and chaining offset calculators.
-
Method Summary
Modifier and TypeMethodDescriptiondecode(long voffset) Return the pair of pack and offset from a midx offsetlongMax offset for this DfsPackFileMidx
-
Method Details
-
decode
Return the pair of pack and offset from a midx offset- Parameters:
voffset- an offset in the midx chain- Returns:
- the corresponding pack and offset pair
-
getMaxOffset
long getMaxOffset()Max offset for this DfsPackFileMidx- Returns:
- max offset for this pack (including its parents)
-