Class AbstractBlobScroll<T extends BlobStoreBlobProvider>

    • Field Detail

      • isKeyPrefixed

        protected boolean isKeyPrefixed
      • providerId

        protected String providerId
      • size

        protected int size
      • totalBlobCount

        protected long totalBlobCount
      • totalBlobSizeCount

        protected long totalBlobSizeCount
    • Constructor Detail

      • AbstractBlobScroll

        public AbstractBlobScroll()
    • Method Detail

      • addTo

        protected boolean addTo​(List<String> list,
                                String key,
                                Supplier<Long> getSize)
        Adds the blob key to the list if it is valid (e.g. looks like a digest if the provider has digest strategy).

        The key added to the list will be prefixed with the provider id if it has to be.

        The key added to the list will be suffixed with the size of the associated blob with the SIZE_DELIMITER separator.

        Parameters:
        list - the list to be
        key - the blob key
        getSize - supplier to sum the total size
        Returns:
        true if the key was added to the list
      • init

        protected abstract void init​(T provider)
      • getBlobKey

        public static String getBlobKey​(String id)
      • getBlobSize

        public static Long getBlobSize​(String id)