Class BatchLogReader

java.lang.Object
org.apache.iotdb.confignode.writelog.io.BatchLogReader
All Implemented Interfaces:
ILogReader

public class BatchLogReader extends Object implements ILogReader
  • Method Details

    • close

      public void close()
      Description copied from interface: ILogReader
      release resources occupied by this object, like file streams.
      Specified by:
      close in interface ILogReader
    • hasNext

      public boolean hasNext()
      Description copied from interface: ILogReader
      return whether there exists next log to be read.
      Specified by:
      hasNext in interface ILogReader
      Returns:
      whether there exists next log to be read.
    • next

      public ConfigPhysicalPlan next()
      Description copied from interface: ILogReader
      return the next log read from media like a WAL file and covert it to a PhysicalPlan.
      Specified by:
      next in interface ILogReader
      Returns:
      the next log as a PhysicalPlan
    • isFileCorrupted

      public boolean isFileCorrupted()