java.lang.Object
org.eclipse.jgit.internal.storage.dfs.DfsPackFile
org.eclipse.jgit.internal.storage.dfs.DfsPackFileMidx
org.eclipse.jgit.internal.storage.dfs.DfsPackFileMidxSingle
A single pack that looks like a midx, to be used in the midx chain
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.internal.storage.dfs.DfsPackFileMidx
DfsPackFileMidx.DfsPackOffset, DfsPackFileMidx.VOffsetCalculatorNested classes/interfaces inherited from class org.eclipse.jgit.internal.storage.dfs.DfsPackFile
DfsPackFile.CachedStreamIndexFactory, DfsPackFile.CachedStreamPackIndexes, DfsPackFile.IndexFactory, DfsPackFile.PackBitmapIndexLoader -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExceptionException that caused the packfile to be flagged as invalidFields inherited from class org.eclipse.jgit.internal.storage.dfs.DfsPackFile
DEFAULT_BITMAP_LOADER, OFFSET_SORT -
Method Summary
Modifier and TypeMethodDescriptionasObjectIdSet(DfsReader ctx) Get a view of this packfile as a set of objectsintfindIdxPosition(DfsReader ctx, AnyObjectId id) getBitmapIndex(DfsReader ctx) Get the BitmapIndex for this PackFile.protected byte[]getChecksum(DfsReader ctx) Return checksum of the midxgetCommitGraph(DfsReader ctx) Get the Commit Graph for this PackFile.Packs indexed by this multipack index (base NOT included)getLocalObjects(DfsReader ctx) Base of this multipack indexprotected intgetObjectCount(DfsReader ctx) Count of objects in this pack (i.e. including, recursively, its base)protected DfsPackFileMidx.VOffsetCalculatorGet the object calculator of this midxgetReverseIdx(DfsReader ctx) Get the PackReverseIndex for this PackFile.booleanhasObject(DfsReader ctx, AnyObjectId id) Check if an object is stored within this pack.protected MultiPackIndex.MidxIteratorlocalIterator(DfsReader ctx) Get a midx iterator over the contents of *this* midx, without the base.Methods inherited from class org.eclipse.jgit.internal.storage.dfs.DfsPackFileMidx
create, getAllCoveredPacks, getPackIndexMethods inherited from class org.eclipse.jgit.internal.storage.dfs.DfsPackFile
getPackDescription, isIndexLoaded
-
Field Details
-
invalidatingCause
Exception that caused the packfile to be flagged as invalid
-
-
Method Details
-
getOffsetCalculator
Description copied from class:DfsPackFileMidxGet the object calculator of this midx- Specified by:
getOffsetCalculatorin classDfsPackFileMidx- Returns:
- an offset calculator for this midx (including its chain)
-
asObjectIdSet
Description copied from class:DfsPackFileGet a view of this packfile as a set of objectsTo use when the caller only needs to check inclusion (without specific order or getting offsets).
- Overrides:
asObjectIdSetin classDfsPackFile- Parameters:
ctx- reader context- Returns:
- a view of this packfile as a set of objects
- Throws:
IOException- cannot load the backing data from storage
-
getReverseIdx
Description copied from class:DfsPackFileGet the PackReverseIndex for this PackFile.- Specified by:
getReverseIdxin classDfsPackFileMidx- Parameters:
ctx- reader context to support reading from the backing store if the index is not already loaded in memory- Returns:
- the PackReverseIndex
- Throws:
IOException- the pack index is not available, or is corrupt
-
getBitmapIndex
Description copied from class:DfsPackFileGet the BitmapIndex for this PackFile.- Overrides:
getBitmapIndexin classDfsPackFile- Parameters:
ctx- reader context to support reading from the backing store if the index is not already loaded in memory.- Returns:
- the BitmapIndex.
- Throws:
IOException- the bitmap index is not available, or is corrupt.
-
getCommitGraph
Description copied from class:DfsPackFileGet the Commit Graph for this PackFile.- Overrides:
getCommitGraphin classDfsPackFile- Parameters:
ctx- reader context to support reading from the backing store if the index is not already loaded in memory.- Returns:
CommitGraph, null if pack doesn't have it.- Throws:
IOException- the Commit Graph is not available, or is corrupt.
-
getObjectCount
Count of objects in this pack (i.e. including, recursively, its base)- Overrides:
getObjectCountin classDfsPackFileMidx- Parameters:
ctx- a reader- Returns:
- count of objects in this pack, including its bases
- Throws:
IOException- an error reading a midx in the chain
-
getChecksum
Description copied from class:DfsPackFileMidxReturn checksum of the midx- Specified by:
getChecksumin classDfsPackFileMidx- Parameters:
ctx- a reader- Returns:
- checksum of the midx
- Throws:
IOException- an error reading the file
-
localIterator
Description copied from class:DfsPackFileMidxGet a midx iterator over the contents of *this* midx, without the base.- Specified by:
localIteratorin classDfsPackFileMidx- Parameters:
ctx- a ready- Returns:
- an iterator over the objects in this midx in sha1 order
- Throws:
IOException- an error loading the underlying data
-
getCoveredPacks
Packs indexed by this multipack index (base NOT included)- Specified by:
getCoveredPacksin classDfsPackFileMidx- Returns:
- packs indexed by this multipack index
-
getMultipackIndexBase
Base of this multipack indexIf this midx is part of a chain, this is its parent
- Specified by:
getMultipackIndexBasein classDfsPackFileMidx- Returns:
- the base of this multipack index
-
findIdxPosition
- Throws:
IOException
-
hasObject
Description copied from class:DfsPackFileCheck if an object is stored within this pack.- Overrides:
hasObjectin classDfsPackFile- Parameters:
ctx- reader context to support reading from the backing store if the index is not already loaded in memory.id- object to be located.- Returns:
- true if the object exists in this pack; false if it does not.
- Throws:
IOException- the pack index is not available, or is corrupt.
-
getLocalObjects
- Throws:
IOException
-