Class EntryKey

java.lang.Object
org.apache.bookkeeper.bookie.EntryKey
Direct Known Subclasses:
EntryKeyValue

public class EntryKey extends Object
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 Details

    • ledgerId

      long ledgerId
    • entryId

      long entryId
    • COMPARATOR

      public static final KeyComparator COMPARATOR
      Comparator for the key portion.
  • Constructor Details

    • EntryKey

      public EntryKey()
    • EntryKey

      public EntryKey(long ledgerId, long entryId)
  • Method Details

    • getLedgerId

      public long getLedgerId()
    • getEntryId

      public long getEntryId()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object