类 LedgerMetadataUtils
java.lang.Object
org.apache.bookkeeper.mledger.impl.LedgerMetadataUtils
Utilities for managing BookKeeper Ledgers custom metadata.
-
方法概要
修饰符和类型方法说明buildMetadataForCompactedLedger(String compactedTopic, byte[] compactedToMessageId) Build additional metadata for a CompactedLedger.buildMetadataForSchema(String schemaId) Build additional metadata for a Schema.
-
方法详细资料
-
buildMetadataForCompactedLedger
public static Map<String,byte[]> buildMetadataForCompactedLedger(String compactedTopic, byte[] compactedToMessageId) Build additional metadata for a CompactedLedger.- 参数:
compactedTopic- reference to the compacted topic.compactedToMessageId- last mesasgeId.- 返回:
- an immutable map which describes the compacted ledger
-
buildMetadataForSchema
Build additional metadata for a Schema.- 参数:
schemaId- id of the schema- 返回:
- an immutable map which describes the schema
-