Class ReftableReader.LogCursorImpl
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.reftable.LogCursor
-
- org.eclipse.jgit.internal.storage.reftable.ReftableReader.LogCursorImpl
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- ReftableReader
private class ReftableReader.LogCursorImpl extends LogCursor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BlockReaderblockprivate ReflogEntryentryprivate byte[]matchprivate java.lang.StringrefNameprivate longscanEndprivate longupdateIndex
-
Constructor Summary
Constructors Constructor Description LogCursorImpl(long scanEnd, byte[] match)Scans logs from this table until scanEnd position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
scanEnd
private final long scanEnd
-
match
private final byte[] match
-
refName
private java.lang.String refName
-
updateIndex
private long updateIndex
-
entry
private ReflogEntry entry
-
block
BlockReader block
-
-
Method Detail
-
next
public boolean next() throws java.io.IOExceptionDescription copied from class:LogCursorCheck if another log record is available.
-
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.
-
-