Class LogCursor

    • Constructor Detail

      • LogCursor

        public LogCursor()
    • Method Detail

      • next

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

        public abstract String getRefName()
        Get name of the current reference.
        Returns:
        name of the current reference.
      • getUpdateIndex

        public abstract long getUpdateIndex()
        Get identifier of the transaction that created the log record.
        Returns:
        identifier of the transaction that created the log record.
      • getReflogEntry

        @Nullable
        public abstract ReflogEntry getReflogEntry()
        Get current log entry.
        Returns:
        current log entry. Maybe null if we are producing deletions.