private class ReftableReader.LogCursorImpl extends LogCursor
Modifier and Type | Field and Description |
---|---|
(package private) BlockReader |
block |
private ReflogEntry |
entry |
private byte[] |
match |
private java.lang.String |
refName |
private long |
scanEnd |
private long |
updateIndex |
Constructor and Description |
---|
LogCursorImpl(long scanEnd,
byte[] match)
Scans logs from this table until scanEnd position.
|
Modifier and Type | Method and 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.
|
private final long scanEnd
private final byte[] match
private java.lang.String refName
private long updateIndex
private ReflogEntry entry
BlockReader block
LogCursorImpl(long scanEnd, byte[] match)
scanEnd
- end of the log data in the reftable.match
- if non-null, limits the scan to precisely that refname.public boolean next() throws java.io.IOException
LogCursor
public java.lang.String getRefName()
LogCursor
getRefName
in class LogCursor
public long getUpdateIndex()
LogCursor
getUpdateIndex
in class LogCursor
public ReflogEntry getReflogEntry()
LogCursor
getReflogEntry
in class LogCursor