public final class DfsPackFile extends Object
Modifier and Type | Field and Description |
---|---|
protected Exception |
invalidatingCause
Exception that caused the packfile to be flagged as invalid
|
Modifier and Type | Method and Description |
---|---|
DfsPackDescription |
getPackDescription()
Get description that was originally used to configure this pack file.
|
PackIndex |
getPackIndex(DfsReader ctx)
Get the PackIndex for this PackFile.
|
boolean |
hasObject(DfsReader ctx,
AnyObjectId id)
Check if an object is stored within this pack.
|
boolean |
isIndexLoaded()
Whether the pack index file is loaded and cached in memory.
|
protected volatile Exception invalidatingCause
public DfsPackDescription getPackDescription()
public boolean isIndexLoaded()
public PackIndex getPackIndex(DfsReader ctx) throws IOException
ctx
- reader context to support reading from the backing store if
the index is not already loaded in memory.IOException
- the pack index is not available, or is corrupt.public boolean hasObject(DfsReader ctx, AnyObjectId id) throws IOException
ctx
- reader context to support reading from the backing store if
the index is not already loaded in memory.id
- object to be located.IOException
- the pack index is not available, or is corrupt.Copyright © 2021 Eclipse JGit Project. All rights reserved.