Class EmptyLogCursor

java.lang.Object
org.eclipse.jgit.internal.storage.reftable.LogCursor
org.eclipse.jgit.internal.storage.reftable.EmptyLogCursor
All Implemented Interfaces:
AutoCloseable

class EmptyLogCursor extends LogCursor
Empty LogCursor with no results.
  • Constructor Details

    • EmptyLogCursor

      EmptyLogCursor()
  • Method Details

    • next

      public boolean next() throws IOException
      Check if another log record is available.
      Specified by:
      next in class LogCursor
      Returns:
      true if there is another result.
      Throws:
      IOException - logs cannot be read.
    • getRefName

      public String getRefName()
      Get name of the current reference.
      Specified by:
      getRefName in class LogCursor
      Returns:
      name of the current reference.
    • getUpdateIndex

      public long getUpdateIndex()
      Get identifier of the transaction that created the log record.
      Specified by:
      getUpdateIndex in class LogCursor
      Returns:
      identifier of the transaction that created the log record.
    • getReflogEntry

      public ReflogEntry getReflogEntry()
      Get current log entry.
      Specified by:
      getReflogEntry in class LogCursor
      Returns:
      current log entry. Maybe null if we are producing deletions.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in class LogCursor