Package org.apache.bookkeeper.util
Class LedgerIdFormatter.HexLedgerIdFormatter
java.lang.Object
org.apache.bookkeeper.util.LedgerIdFormatter
org.apache.bookkeeper.util.LedgerIdFormatter.HexLedgerIdFormatter
- Enclosing class:
- LedgerIdFormatter
hex 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 -
Method Summary
Modifier and TypeMethodDescriptionformatLedgerId(long ledgerId) Formats the LedgerId according to the type of the Formatter and return it in String format.longreadLedgerId(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
-
Constructor Details
-
HexLedgerIdFormatter
public HexLedgerIdFormatter()
-
-
Method Details
-
formatLedgerId
Description copied from class:LedgerIdFormatterFormats the LedgerId according to the type of the Formatter and return it in String format.- Specified by:
formatLedgerIdin classLedgerIdFormatter- Returns:
-
readLedgerId
Description copied from class:LedgerIdFormatterconverts the ledgeridString, which is in format of the type of formatter, to the long value.- Specified by:
readLedgerIdin classLedgerIdFormatter- Returns:
-