private class MergedReftable.MergedLogCursor extends LogCursor
Modifier and Type | Field and Description |
---|---|
private ReflogEntry |
entry |
private java.util.PriorityQueue<MergedReftable.LogQueueEntry> |
queue |
private java.lang.String |
refName |
private long |
updateIndex |
Constructor and Description |
---|
MergedLogCursor() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(MergedReftable.LogQueueEntry t) |
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 void |
skipShadowed(java.lang.String name,
long index) |
private final java.util.PriorityQueue<MergedReftable.LogQueueEntry> queue
private java.lang.String refName
private long updateIndex
private ReflogEntry entry
void add(MergedReftable.LogQueueEntry t) throws java.io.IOException
java.io.IOException
public boolean next() throws java.io.IOException
LogCursor
private void skipShadowed(java.lang.String name, long index) throws java.io.IOException
java.io.IOException
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