Class MemTableFlushTask


  • public class MemTableFlushTask
    extends java.lang.Object
    flush task to flush one memtable using a pipeline model to flush, which is sort memtable -> encoding -> write to disk (io task)
    • Constructor Summary

      Constructors 
      Constructor Description
      MemTableFlushTask​(IMemTable memTable, org.apache.iotdb.tsfile.write.writer.RestorableTsFileIOWriter writer, java.lang.String storageGroup)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void syncFlushMemTable()
      the function for flushing memtable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MemTableFlushTask

        public MemTableFlushTask​(IMemTable memTable,
                                 org.apache.iotdb.tsfile.write.writer.RestorableTsFileIOWriter writer,
                                 java.lang.String storageGroup)
        Parameters:
        memTable - the memTable to flush
        writer - the writer where memTable will be flushed to (current tsfile writer or vm writer)
        storageGroup - current storage group
    • Method Detail

      • syncFlushMemTable

        public void syncFlushMemTable()
                               throws java.util.concurrent.ExecutionException,
                                      java.lang.InterruptedException
        the function for flushing memtable.
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException