Class ReftableReader.LogCursorImpl
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.reftable.LogCursor
-
- org.eclipse.jgit.internal.storage.reftable.ReftableReader.LogCursorImpl
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- ReftableReader
private class ReftableReader.LogCursorImpl extends LogCursor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BlockReader
block
private ReflogEntry
entry
private byte[]
match
private java.lang.String
refName
private long
scanEnd
private long
updateIndex
-
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.
-
-
-
Field Detail
-
scanEnd
private final long scanEnd
-
match
private final byte[] match
-
refName
private java.lang.String refName
-
updateIndex
private long updateIndex
-
entry
private ReflogEntry entry
-
block
BlockReader block
-
-
Method Detail
-
next
public boolean next() throws java.io.IOException
Description copied from class:LogCursor
Check if another log record is available.
-
getRefName
public java.lang.String getRefName()
Description copied from class:LogCursor
Get name of the current reference.- Specified by:
getRefName
in classLogCursor
- 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 classLogCursor
- 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 classLogCursor
- Returns:
- current log entry. Maybe null if we are producing deletions.
-
-