Class LogCursor
java.lang.Object
org.eclipse.jgit.internal.storage.reftable.LogCursor
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
EmptyLogCursor,MergedReftable.MergedLogCursor,ReftableReader.LogCursorImpl
Iterator over logs inside a
Reftable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()abstract ReflogEntryGet current log entry.abstract StringGet name of the current reference.abstract longGet identifier of the transaction that created the log record.abstract booleannext()Check if another log record is available.
-
Constructor Details
-
LogCursor
public LogCursor()
-
-
Method Details
-
next
Check if another log record is available.- Returns:
trueif there is another result.- Throws:
IOException- logs cannot be read.
-
getRefName
Get name of the current reference.- Returns:
- name of the current reference.
-
getUpdateIndex
public abstract long getUpdateIndex()Get identifier of the transaction that created the log record.- Returns:
- identifier of the transaction that created the log record.
-
getReflogEntry
Get current log entry.- Returns:
- current log entry. Maybe null if we are producing deletions.
-
close
public abstract void close()- Specified by:
closein interfaceAutoCloseable
-