类 LedgerMetadataUtils

java.lang.Object
org.apache.bookkeeper.mledger.impl.LedgerMetadataUtils

public final class LedgerMetadataUtils extends Object
Utilities for managing BookKeeper Ledgers custom metadata.
  • 方法详细资料

    • 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

      public static Map<String,byte[]> buildMetadataForSchema(String schemaId)
      Build additional metadata for a Schema.
      参数:
      schemaId - id of the schema
      返回:
      an immutable map which describes the schema