Package org.apache.bookkeeper.util
Class LedgerIdFormatter.LongLedgerIdFormatter
- java.lang.Object
-
- org.apache.bookkeeper.util.LedgerIdFormatter
-
- org.apache.bookkeeper.util.LedgerIdFormatter.LongLedgerIdFormatter
-
- Enclosing class:
- LedgerIdFormatter
public static class LedgerIdFormatter.LongLedgerIdFormatter extends LedgerIdFormatter
long ledgerId formatter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.bookkeeper.util.LedgerIdFormatter
LedgerIdFormatter.HexLedgerIdFormatter, LedgerIdFormatter.LongLedgerIdFormatter, LedgerIdFormatter.UUIDLedgerIdFormatter
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.util.LedgerIdFormatter
LONG_LEDGERID_FORMATTER
-
-
Constructor Summary
Constructors Constructor Description LongLedgerIdFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatLedgerId(long ledgerId)
Formats the LedgerId according to the type of the Formatter and return it in String format.long
readLedgerId(java.lang.String ledgerIdString)
converts the ledgeridString, which is in format of the type of formatter, to the long value.-
Methods inherited from class org.apache.bookkeeper.util.LedgerIdFormatter
newLedgerIdFormatter, newLedgerIdFormatter
-
-
-
-
Method Detail
-
formatLedgerId
public java.lang.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 classLedgerIdFormatter
- Returns:
-
readLedgerId
public long readLedgerId(java.lang.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 classLedgerIdFormatter
- Returns:
-
-