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 ReflogEntryprivate final PriorityQueue<MergedReftable.LogQueueEntry>private Stringprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidvoidclose()Get current log entry.Get name of the current reference.longGet identifier of the transaction that created the log record.booleannext()Check if another log record is available.private voidskipShadowed(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:LogCursorCheck if another log record is available.- Specified by:
nextin classLogCursor- Returns:
trueif there is another result.- Throws:
IOException- logs cannot be read.
-
skipShadowed
- Throws:
IOException
-
getRefName
Description copied from class:LogCursorGet name of the current reference.- Specified by:
getRefNamein classLogCursor- Returns:
- name of the current reference.
-
getUpdateIndex
public long getUpdateIndex()Description copied from class:LogCursorGet identifier of the transaction that created the log record.- Specified by:
getUpdateIndexin classLogCursor- Returns:
- identifier of the transaction that created the log record.
-
getReflogEntry
Description copied from class:LogCursorGet current log entry.- Specified by:
getReflogEntryin classLogCursor- Returns:
- current log entry. Maybe null if we are producing deletions.
-
close
public void close()Description copied from class:LogCursor- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classLogCursor
-