Class LogIterator

java.lang.Object
org.teamapps.universaldb.index.log.LogIterator
All Implemented Interfaces:
java.lang.AutoCloseable, java.util.Iterator<byte[]>

public class LogIterator
extends java.lang.Object
implements java.util.Iterator<byte[]>, java.lang.AutoCloseable
  • Constructor Summary

    Constructors
    Constructor Description
    LogIterator​(java.util.List<java.io.File> logFiles, long startPosition, boolean rotatingLogIndex)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    boolean hasNext()  
    byte[] next()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining, remove
  • Constructor Details

    • LogIterator

      public LogIterator​(java.util.List<java.io.File> logFiles, long startPosition, boolean rotatingLogIndex)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface java.util.Iterator<byte[]>
    • next

      public byte[] next()
      Specified by:
      next in interface java.util.Iterator<byte[]>
    • close

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