Package org.apache.bookkeeper.bookie
Class EntryKey
- java.lang.Object
-
- org.apache.bookkeeper.bookie.EntryKey
-
- Direct Known Subclasses:
EntryKeyValue
public class EntryKey extends java.lang.Object
AnEntryKey
represents an entry in a ledger, identified byledgerId
andentryId
.This class is mainly used in
SortedLedgerStorage
for managing and sorting the entries in the memtable.
-
-
Field Summary
Fields Modifier and Type Field Description static KeyComparator
COMPARATOR
Comparator for the key portion.(package private) long
entryId
(package private) long
ledgerId
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
long
getEntryId()
long
getLedgerId()
int
hashCode()
-
-
-
Field Detail
-
ledgerId
long ledgerId
-
entryId
long entryId
-
COMPARATOR
public static final KeyComparator COMPARATOR
Comparator for the key portion.
-
-