Class MergedReftable.MergedLogCursor
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.reftable.LogCursor
-
- org.eclipse.jgit.internal.storage.reftable.MergedReftable.MergedLogCursor
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- MergedReftable
private class MergedReftable.MergedLogCursor extends LogCursor
-
-
Field Summary
Fields Modifier and Type Field Description private ReflogEntryentryprivate java.util.PriorityQueue<MergedReftable.LogQueueEntry>queueprivate java.lang.StringrefNameprivate longupdateIndex
-
Constructor Summary
Constructors Constructor Description MergedLogCursor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(MergedReftable.LogQueueEntry t)voidclose()ReflogEntrygetReflogEntry()Get current log entry.java.lang.StringgetRefName()Get name of the current reference.longgetUpdateIndex()Get identifier of the transaction that created the log record.booleannext()Check if another log record is available.private voidskipShadowed(java.lang.String name, long index)
-
-
-
Field Detail
-
queue
private final java.util.PriorityQueue<MergedReftable.LogQueueEntry> queue
-
refName
private java.lang.String refName
-
updateIndex
private long updateIndex
-
entry
private ReflogEntry entry
-
-
Method Detail
-
add
void add(MergedReftable.LogQueueEntry t) throws java.io.IOException
- Throws:
java.io.IOException
-
next
public boolean next() throws java.io.IOExceptionDescription copied from class:LogCursorCheck if another log record is available.
-
skipShadowed
private void skipShadowed(java.lang.String name, long index) throws java.io.IOException- Throws:
java.io.IOException
-
getRefName
public java.lang.String 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
public ReflogEntry getReflogEntry()
Description copied from class:LogCursorGet current log entry.- Specified by:
getReflogEntryin classLogCursor- Returns:
- current log entry. Maybe null if we are producing deletions.
-
-