Class ReftableReader.LogCursorImpl

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    ReftableReader

    private class ReftableReader.LogCursorImpl
    extends LogCursor
    • Constructor Summary

      Constructors 
      Constructor Description
      LogCursorImpl​(long scanEnd, byte[] match)
      Scans logs from this table until scanEnd position.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      ReflogEntry getReflogEntry()
      Get current log entry.
      java.lang.String getRefName()
      Get name of the current reference.
      long getUpdateIndex()
      Get identifier of the transaction that created the log record.
      boolean next()
      Check if another log record is available.
      • Methods inherited from class java.lang.Object

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

      • scanEnd

        private final long scanEnd
      • match

        private final byte[] match
      • refName

        private java.lang.String refName
      • updateIndex

        private long updateIndex
    • Constructor Detail

      • LogCursorImpl

        LogCursorImpl​(long scanEnd,
                      byte[] match)
        Scans logs from this table until scanEnd position.
        Parameters:
        scanEnd - end of the log data in the reftable.
        match - if non-null, limits the scan to precisely that refname.
    • Method Detail

      • next

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

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

        public long getUpdateIndex()
        Description copied from class: LogCursor
        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()
        Description copied from class: LogCursor
        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()
        Description copied from class: LogCursor
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class LogCursor