Class RDBBlobStore

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.jackrabbit.oak.commons.cache.Cache.Backend<org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId,​org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.Data>, org.apache.jackrabbit.oak.spi.blob.BlobStore, org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore

    public class RDBBlobStore
    extends org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore
    implements java.io.Closeable
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore

        org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId, org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.Data
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected RDBConnectionHandler ch  
      protected static int IDSIZE  
      protected java.lang.String tnData  
      protected java.lang.String tnMeta  
      • Fields inherited from class org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore

        blobCacheSize, cache, DEFAULT_CACHE_SIZE, MEM_CACHE_NAME
      • Fields inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore

        BLOCK_SIZE_LIMIT, HASH_ALGORITHM, inUse, TYPE_DATA, TYPE_HASH
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      long countDeleteChunks​(java.util.List<java.lang.String> chunkIds, long maxLastModifiedTime)  
      protected void finalize()  
      java.util.Iterator<java.lang.String> getAllChunkIds​(long maxLastModifiedTime)  
      protected boolean isMarkEnabled()  
      protected void mark​(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId blockId)  
      protected byte[] readBlockFromBackend​(byte[] digest)  
      protected byte[] readBlockFromBackend​(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId blockId)  
      void startMark()  
      protected void storeBlock​(byte[] digest, int level, byte[] data)  
      int sweep()  
      • Methods inherited from class org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore

        clearCache, getBlobCacheSize, getCacheStats
      • Methods inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore

        clearInUse, deleteChunks, getBlobId, getBlobLength, getBlockSize, getBlockSizeMin, getInputStream, getOrCreateReferenceKey, getReference, getStatsCollector, load, mark, markInUse, readBlob, resolveChunks, setBlockSize, setBlockSizeMin, setReferenceKey, setReferenceKeyEncoded, setReferenceKeyPlainText, setStatsCollector, usesBlobId, writeBlob, writeBlob, writeBlob
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • IDSIZE

        protected static final int IDSIZE
      • tnData

        protected java.lang.String tnData
      • tnMeta

        protected java.lang.String tnMeta
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • storeBlock

        protected void storeBlock​(byte[] digest,
                                  int level,
                                  byte[] data)
                           throws java.io.IOException
        Specified by:
        storeBlock in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
        Throws:
        java.io.IOException
      • readBlockFromBackend

        protected byte[] readBlockFromBackend​(byte[] digest)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • readBlockFromBackend

        protected byte[] readBlockFromBackend​(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId blockId)
                                       throws java.lang.Exception
        Specified by:
        readBlockFromBackend in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
        Throws:
        java.lang.Exception
      • startMark

        public void startMark()
                       throws java.io.IOException
        Specified by:
        startMark in interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore
        Specified by:
        startMark in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
        Throws:
        java.io.IOException
      • isMarkEnabled

        protected boolean isMarkEnabled()
        Specified by:
        isMarkEnabled in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
      • mark

        protected void mark​(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId blockId)
                     throws java.lang.Exception
        Specified by:
        mark in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
        Throws:
        java.lang.Exception
      • sweep

        public int sweep()
                  throws java.io.IOException
        Specified by:
        sweep in interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore
        Specified by:
        sweep in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
        Throws:
        java.io.IOException
      • countDeleteChunks

        public long countDeleteChunks​(java.util.List<java.lang.String> chunkIds,
                                      long maxLastModifiedTime)
                               throws java.lang.Exception
        Specified by:
        countDeleteChunks in interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore
        Throws:
        java.lang.Exception
      • getAllChunkIds

        public java.util.Iterator<java.lang.String> getAllChunkIds​(long maxLastModifiedTime)
                                                            throws java.lang.Exception
        Specified by:
        getAllChunkIds in interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStore
        Throws:
        java.lang.Exception