Interface CheckableStore

All Superinterfaces:
AutoCloseable, Store

public interface CheckableStore extends Store
A store that can be checked out, that is, its view of the world can be moved back in time. Different moments of the store are identifies by hashes, that can be checked out when needed.
  • Method Details

    • checkout

      void checkout(byte[] hash)
      Resets the store to the view of the world expressed by the given hash. This assumes that no commit after the one that created the given hash has been garbage-collected, since otherwise some data might be missing for the given hash, which might result in missing objects.
      Parameters:
      hash - the hash to reset to