Class DfsReftable

java.lang.Object
org.eclipse.jgit.internal.storage.dfs.BlockBasedFile
org.eclipse.jgit.internal.storage.dfs.DfsReftable

public class DfsReftable extends BlockBasedFile
A reftable stored in DfsBlockCache.
  • Constructor Details

    • 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 Details

    • 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.