Class DataBlockUtils
java.lang.Object
org.apache.bookkeeper.mledger.offload.jcloud.impl.DataBlockUtils
Utility class for performing various Data Block functions including:
- Calculating the data block offload key
- Calculating the data block index key
- Adding version metadata information to a Data Block
- Validating the version metadata information of a Data Block.
Additional functions can be added in to future to tag Data Blocks with information such as the compression algorithm used to compress the contents, the md5 checksum of the content for validation, date published, etc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceVersion checking marker interface. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddVersionInfo(org.jclouds.blobstore.domain.BlobBuilder blobBuilder, Map<String, String> userMetadata) static StringdataBlockOffloadKey(long ledgerId, UUID uuid) static StringindexBlockOffloadKey(long ledgerId, UUID uuid) static StringindexBlockOffloadKey(UUID uuid)
-
Field Details
-
METADATA_FORMAT_VERSION_KEY
- See Also:
-
VERSION_CHECK
-
-
Constructor Details
-
DataBlockUtils
public DataBlockUtils()
-
-
Method Details
-
dataBlockOffloadKey
-
indexBlockOffloadKey
-
indexBlockOffloadKey
-
addVersionInfo
-