Class EntryKey

  • Direct Known Subclasses:
    EntryKeyValue

    public class EntryKey
    extends java.lang.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.

    • Constructor Summary

      Constructors 
      Constructor Description
      EntryKey()  
      EntryKey​(long ledgerId, long entryId)  
    • Field Detail

      • ledgerId

        long ledgerId
      • entryId

        long entryId
      • COMPARATOR

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

      • EntryKey

        public EntryKey()
      • EntryKey

        public EntryKey​(long ledgerId,
                        long entryId)
    • Method Detail

      • getLedgerId

        public long getLedgerId()
      • getEntryId

        public long getEntryId()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object