Class WALReader

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

    public class WALReader
    extends java.lang.Object
    implements java.io.Closeable
    This reader returns WALEntry directly, the usage of WALReader is like Iterator.
    • Constructor Summary

      Constructors 
      Constructor Description
      WALReader​(java.io.File logFile)  
      WALReader​(java.io.File logFile, boolean fileMayCorrupt)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean hasNext()
      Like Iterator.hasNext()
      WALEntry next()
      Like Iterator.next()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WALReader

        public WALReader​(java.io.File logFile)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • WALReader

        public WALReader​(java.io.File logFile,
                         boolean fileMayCorrupt)
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • hasNext

        public boolean hasNext()
        Like Iterator.hasNext()
      • next

        public WALEntry next()
        Like Iterator.next()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException