Interface CompactableLedgerStorage

    • Method Detail

      • getActiveLedgersInRange

        java.lang.Iterable<java.lang.Long> getActiveLedgersInRange​(long firstLedgerId,
                                                                   long lastLedgerId)
                                                            throws java.io.IOException
        Get an iterator over a range of ledger ids stored in the bookie.
        Parameters:
        firstLedgerId - first ledger id in the sequence (included)
        lastLedgerId - last ledger id in the sequence (not included)
        Returns:
        Throws:
        java.io.IOException
      • updateEntriesLocations

        void updateEntriesLocations​(java.lang.Iterable<EntryLocation> locations)
                             throws java.io.IOException
        Update the location of several entries.
        Parameters:
        locations - the list of locations to update
        Throws:
        java.io.IOException
      • flushEntriesLocationsIndex

        void flushEntriesLocationsIndex()
                                 throws java.io.IOException
        Flush the entries locations index for the compacted entries.
        Throws:
        java.io.IOException