Class DfsReftable
java.lang.Object
org.eclipse.jgit.internal.storage.dfs.BlockBasedFile
org.eclipse.jgit.internal.storage.dfs.DfsReftable
A reftable stored in
DfsBlockCache
.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.eclipse.jgit.internal.storage.dfs.BlockBasedFile
blockSize, cache, desc, ext, invalid, invalidatingCause, key, length
-
Constructor Summary
ConstructorsConstructorDescriptionDfsReftable
(DfsBlockCache cache, DfsPackDescription desc) Construct a reader for an existing reftable.Construct a reader for an existing reftable. -
Method Summary
Modifier and TypeMethodDescriptionGet description that was originally used to configure this file.Open reader on the reftable.Methods inherited from class org.eclipse.jgit.internal.storage.dfs.BlockBasedFile
alignToBlock, blockSize, elapsedMicros, getFileName, getOrLoadBlock, invalid, read, readOneBlock, setBlockSize, setInvalid
-
Constructor Details
-
DfsReftable
Construct a reader for an existing reftable.- Parameters:
desc
- description of the reftable within the DFS.
-
DfsReftable
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 Details
-
getPackDescription
Get description that was originally used to configure this file.- Returns:
- description that was originally used to configure this file.
-
open
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.
-