Class LobStorageMap

java.lang.Object
org.h2.mvstore.db.LobStorageMap
All Implemented Interfaces:
LobStorageInterface

public final class LobStorageMap extends Object implements LobStorageInterface
This class stores LOB objects in the database, in maps. This is the back-end i.e. the server side of the LOB storage.
  • Field Details

    • TRACE

      private static final boolean TRACE
      See Also:
    • database

      private final Database database
    • mvStore

      final MVStore mvStore
    • nextLobId

      private final AtomicLong nextLobId
    • lobMap

      private final MVMap<Long,LobStorageMap.BlobMeta> lobMap
      The lob metadata map. It contains the mapping from the lob id (which is a long) to the blob metadata, including stream store id (which is a byte array).
    • tempLobMap

      private final MVMap<Long,byte[]> tempLobMap
      The lob metadata map for temporary lobs. It contains the mapping from the lob id (which is a long) to the stream store id (which is a byte array). Key: lobId (long) Value: streamStoreId (byte[])
    • refMap

      private final MVMap<LobStorageMap.BlobReference,Value> refMap
      The reference map. It is used to remove data from the stream store: if no more entries for the given streamStoreId exist, the data is removed from the stream store.
    • streamStore

      private final StreamStore streamStore
  • Constructor Details

    • LobStorageMap

      public LobStorageMap(Database database)
  • Method Details