Class MVMapSnapshot

All Implemented Interfaces:
CloseableKVStore, KVStore, Closeable, AutoCloseable

@ThreadSafe public class MVMapSnapshot extends MVMapKVStore implements CloseableKVStore
A read-only snapshot an MVMap.

Instances must be close()'d when no longer needed to allow the underlying MVMap version to be released.

Mutation operations throw UnsupportedOperationException.

  • Constructor Details

    • MVMapSnapshot

      public MVMapSnapshot(org.h2.mvstore.MVMap<byte[],byte[]> mvmap)
      Constructor.
      Parameters:
      mvmap - the underlying MVMap to snapshot
      Throws:
      NullPointerException - if mvmap is null
  • Method Details