Class DfsReftable
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.dfs.DfsReftable
-
public class DfsReftable extends Object
A reftable stored inDfsBlockCache
.
-
-
Field Summary
Fields Modifier and Type Field Description protected Exception
invalidatingCause
Exception that caused the packfile to be flagged as invalid
-
Constructor Summary
Constructors Constructor Description DfsReftable(DfsBlockCache cache, DfsPackDescription desc)
Construct a reader for an existing reftable.DfsReftable(DfsPackDescription desc)
Construct a reader for an existing reftable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DfsPackDescription
getPackDescription()
Get description that was originally used to configure this file.ReftableReader
open(DfsReader ctx)
Open reader on the reftable.
-
-
-
Field Detail
-
invalidatingCause
protected volatile Exception invalidatingCause
Exception that caused the packfile to be flagged as invalid
-
-
Constructor Detail
-
DfsReftable
public DfsReftable(DfsPackDescription desc)
Construct a reader for an existing reftable.- Parameters:
desc
- description of the reftable within the DFS.
-
DfsReftable
public DfsReftable(DfsBlockCache cache, DfsPackDescription desc)
Construct a reader for an existing reftable.- Parameters:
cache
- cache that will store the reftable data.desc
- description of the reftable within the DFS.
-
-
Method Detail
-
getPackDescription
public DfsPackDescription getPackDescription()
Get description that was originally used to configure this file.- Returns:
- description that was originally used to configure this file.
-
open
public ReftableReader open(DfsReader ctx) throws IOException
Open reader on the reftable.The returned reader is not thread safe.
- Parameters:
ctx
- reader to access the DFS storage.- Returns:
- cursor to read the table; caller must close.
- Throws:
IOException
- table cannot be opened.
-
-