Class LedgerIdFormatter.HexLedgerIdFormatter

java.lang.Object
org.apache.bookkeeper.util.LedgerIdFormatter
org.apache.bookkeeper.util.LedgerIdFormatter.HexLedgerIdFormatter
Enclosing class:
LedgerIdFormatter

public static class LedgerIdFormatter.HexLedgerIdFormatter extends LedgerIdFormatter
hex ledgerId formatter.
  • Constructor Details

    • HexLedgerIdFormatter

      public HexLedgerIdFormatter()
  • Method Details

    • formatLedgerId

      public String formatLedgerId(long ledgerId)
      Description copied from class: LedgerIdFormatter
      Formats the LedgerId according to the type of the Formatter and return it in String format.
      Specified by:
      formatLedgerId in class LedgerIdFormatter
      Returns:
    • readLedgerId

      public long readLedgerId(String ledgerIdString)
      Description copied from class: LedgerIdFormatter
      converts the ledgeridString, which is in format of the type of formatter, to the long value.
      Specified by:
      readLedgerId in class LedgerIdFormatter
      Returns: