Class LedgerMetadataUtils
- java.lang.Object
-
- org.apache.bookkeeper.mledger.impl.LedgerMetadataUtils
-
public final class LedgerMetadataUtils extends java.lang.ObjectUtilities for managing BookKeeper Ledgers custom metadata.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,byte[]>buildMetadataForCompactedLedger(java.lang.String compactedTopic, byte[] compactedToMessageId)Build additional metadata for a CompactedLedger.static java.util.Map<java.lang.String,byte[]>buildMetadataForSchema(java.lang.String schemaId)Build additional metadata for a Schema
-
-
-
Method Detail
-
buildMetadataForCompactedLedger
public static java.util.Map<java.lang.String,byte[]> buildMetadataForCompactedLedger(java.lang.String compactedTopic, byte[] compactedToMessageId)Build additional metadata for a CompactedLedger.- Parameters:
compactedTopic- reference to the compacted topic.compactedToMessageId- last mesasgeId.- Returns:
- an immutable map which describes the compacted ledger
-
buildMetadataForSchema
public static java.util.Map<java.lang.String,byte[]> buildMetadataForSchema(java.lang.String schemaId)
Build additional metadata for a Schema- Parameters:
schemaId- id of the schema- Returns:
- an immutable map which describes the schema
-
-