Class BatchLogReader
- java.lang.Object
-
- org.apache.iotdb.db.utils.writelog.BatchLogReader
-
- All Implemented Interfaces:
ILogReader
public class BatchLogReader extends java.lang.Object implements ILogReader
BatchedLogReader reads logs from a binary batch of log in the format of ByteBuffer. The ByteBuffer must be readable.
-
-
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.booleanisFileCorrupted()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()
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
public PhysicalPlan 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
-
isFileCorrupted
public boolean isFileCorrupted()
-
-