Package org.apache.bookkeeper.bookie
Class EntryKey
java.lang.Object
org.apache.bookkeeper.bookie.EntryKey
- Direct Known Subclasses:
EntryKeyValue
An
EntryKey represents an entry in a ledger, identified by ledgerId and entryId.
This class is mainly used in SortedLedgerStorage for managing and sorting the entries in the memtable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyComparatorComparator for the key portion.(package private) long(package private) long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ledgerId
long ledgerId -
entryId
long entryId -
COMPARATOR
Comparator for the key portion.
-
-
Constructor Details
-
EntryKey
public EntryKey() -
EntryKey
public EntryKey(long ledgerId, long entryId)
-
-
Method Details