Class UnsealedTsFileRecoverPerformer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class UnsealedTsFileRecoverPerformer
    extends AbstractTsFileRecoverPerformer
    This class is used to help recover all unsealed TsFiles at zero level. There are 3 main procedures: start recovery, redo logs, and end recovery, you must call them in order. Notice: This class doesn't guarantee concurrency safety.
    • Method Detail

      • startRecovery

        public void startRecovery()
                           throws DataRegionException,
                                  java.io.IOException
        Make preparation for recovery, including load .resource file (reconstruct when necessary) and truncate the file to remaining corrected data.
        Throws:
        DataRegionException
        java.io.IOException
      • redoLog

        public void redoLog​(WALEntry walEntry)
        Redo log
      • getWriter

        public org.apache.iotdb.tsfile.write.writer.RestorableTsFileIOWriter getWriter()
      • isSequence

        public boolean isSequence()
      • getTsFileAbsolutePath

        public java.lang.String getTsFileAbsolutePath()