Top Description Constructors Methods
org.eclipse.jgit.internal.storage.reftable

public abstract Class LogCursor

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Known Direct Subclasses
org.eclipse.jgit.internal.storage.reftable.MergedReftable.MergedLogCursor, org.eclipse.jgit.internal.storage.reftable.ReftableReader.LogCursorImpl, org.eclipse.jgit.internal.storage.reftable.EmptyLogCursor
Imports
java.io.IOException, org.eclipse.jgit.annotations.Nullable, org.eclipse.jgit.lib.ReflogEntry

Iterator over logs inside a org.eclipse.jgit.internal.storage.reftable.Reftable.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
close()

Redeclares java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public abstract ReflogEntry

Returns:

current log entry. Maybe null if we are producing deletions.
getReflogEntry
()

Get current log entry.

public abstract String

Returns:

name of the current reference.
getRefName
()

Get name of the current reference.

public abstract long

Returns:

identifier of the transaction that created the log record.
getUpdateIndex
()

Get identifier of the transaction that created the log record.

public abstract boolean

Returns:

true if there is another result.
next
()

Check if another log record is available.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LogCursorback to summary
public LogCursor()

Method Detail

closeback to summary
public abstract void close()

Redeclares java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
getReflogEntryback to summary
public abstract ReflogEntry getReflogEntry()

Get current log entry.

Returns:ReflogEntry

current log entry. Maybe null if we are producing deletions.

Annotations
@Nullable
getRefNameback to summary
public abstract String getRefName()

Get name of the current reference.

Returns:String

name of the current reference.

getUpdateIndexback to summary
public abstract long getUpdateIndex()

Get identifier of the transaction that created the log record.

Returns:long

identifier of the transaction that created the log record.

nextback to summary
public abstract boolean next() throws IOException

Check if another log record is available.

Returns:boolean

true if there is another result.

Exceptions
IOException:
logs cannot be read.