Class SingleFileLogReader
java.lang.Object
org.apache.iotdb.confignode.writelog.io.SingleFileLogReader
- All Implemented Interfaces:
ILogReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LEAST_LOG_SIZE
public static final int LEAST_LOG_SIZE- See Also:
-
-
Constructor Details
-
SingleFileLogReader
- Throws:
FileNotFoundException
-
-
Method Details
-
hasNext
public boolean hasNext()Description 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.
-
next
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
-
close
public void close()Description copied from interface:ILogReaderrelease resources occupied by this object, like file streams.- Specified by:
closein interfaceILogReader
-
open
- Throws:
FileNotFoundException
-
isFileCorrupted
public boolean isFileCorrupted()
-