Class MergedReftable.MergedLogCursor
java.lang.Object
org.eclipse.jgit.internal.storage.reftable.LogCursor
org.eclipse.jgit.internal.storage.reftable.MergedReftable.MergedLogCursor
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- MergedReftable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ReflogEntry
private final PriorityQueue<MergedReftable.LogQueueEntry>
private String
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
void
close()
Get current log entry.Get name of the current reference.long
Get identifier of the transaction that created the log record.boolean
next()
Check if another log record is available.private void
skipShadowed
(String name, long index)
-
Field Details
-
queue
-
refName
-
updateIndex
private long updateIndex -
entry
-
-
Constructor Details
-
MergedLogCursor
MergedLogCursor()
-
-
Method Details
-
add
- Throws:
IOException
-
next
Description copied from class:LogCursor
Check if another log record is available.- Specified by:
next
in classLogCursor
- Returns:
true
if there is another result.- Throws:
IOException
- logs cannot be read.
-
skipShadowed
- Throws:
IOException
-
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
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.
-
close
public void close()Description copied from class:LogCursor
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classLogCursor
-