Class DfsReftable

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