Class EntryMemTableWithParallelFlusher

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    class EntryMemTableWithParallelFlusher
    extends EntryMemTable
    EntryMemTableWithParallelFlusher.
    • Method Detail

      • flushSnapshot

        long flushSnapshot​(SkipListFlusher flusher,
                           CheckpointSource.Checkpoint checkpoint)
                    throws java.io.IOException
        Functionally this overridden flushSnapshot does the same as EntryMemTable's flushSnapshot, but it uses flushExecutor (OrderedExecutor) to process an entry through flusher.

        SubMaps of the snapshot corresponding to the entries of the ledgers are created and submitted to the flushExecutor with ledgerId as the orderingKey to flush process the entries of a ledger.

        Overrides:
        flushSnapshot in class EntryMemTable
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class EntryMemTable
        Throws:
        java.lang.Exception