Class MultiFileLogReader
- java.lang.Object
-
- org.apache.iotdb.db.utils.writelog.MultiFileLogReader
-
- All Implemented Interfaces:
ILogReader
public class MultiFileLogReader extends java.lang.Object implements ILogReader
MultiFileLogReader constructs SingleFileLogReaders for a list of WAL files, and retrieve logs from the files one-by-one.
-
-
Constructor Summary
Constructors Constructor Description MultiFileLogReader(java.io.File[] files)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()release resources occupied by this object, like file streams.booleanhasNext()return whether there exists next log to be read.PhysicalPlannext()return the next log read from media like a WAL file and covert it to a PhysicalPlan.
-
-
-
Method Detail
-
close
public void close()
Description copied from interface:ILogReaderrelease resources occupied by this object, like file streams.- Specified by:
closein interfaceILogReader
-
hasNext
public boolean hasNext() throws java.io.FileNotFoundExceptionDescription copied from interface:ILogReaderreturn whether there exists next log to be read.- Specified by:
hasNextin interfaceILogReader- Returns:
- whether there exists next log to be read.
- Throws:
java.io.FileNotFoundException
-
next
public PhysicalPlan next() throws java.io.FileNotFoundException
Description copied from interface:ILogReaderreturn the next log read from media like a WAL file and covert it to a PhysicalPlan.- Specified by:
nextin interfaceILogReader- Returns:
- the next log as a PhysicalPlan
- Throws:
java.io.FileNotFoundException
-
-