Class ReftableReader.ObjCursorImpl
java.lang.Object
org.eclipse.jgit.internal.storage.reftable.RefCursor
org.eclipse.jgit.internal.storage.reftable.ReftableReader.ObjCursorImpl
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- ReftableReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getRef()Get reference at the current position.(package private) voidinitScan()(package private) voidinitSeek()booleannext()Check if another reference is available.voidseekPastPrefix(String prefixName) Seeks forward to the first ref record lexicographically beyondprefixNamethat doesn't start withprefixName.Methods inherited from class org.eclipse.jgit.internal.storage.reftable.RefCursor
wasDeleted
-
Field Details
-
scanEnd
private final long scanEnd -
match
-
ref
-
listIdx
private int listIdx -
blockPos
-
block
-
-
Constructor Details
-
ObjCursorImpl
ObjCursorImpl(long scanEnd, AnyObjectId id)
-
-
Method Details
-
initSeek
- Throws:
IOException
-
initScan
- Throws:
IOException
-
next
Description copied from class:RefCursorCheck if another reference is available.- Specified by:
nextin classRefCursor- Returns:
trueif there is another result.- Throws:
IOException- references cannot be read.
-
seekPastPrefix
Description copied from class:RefCursorSeeks forward to the first ref record lexicographically beyondprefixNamethat doesn't start withprefixName. If there are no more results, skipping some refs won't add new results. E.g if we create a RefCursor that returns only results with a specific prefix, skipping that prefix won't give results that are not part of the original prefix.- Specified by:
seekPastPrefixin classRefCursor- Parameters:
prefixName- prefix that should be skipped. All previous refs before it will be skipped.- Throws:
IOException- references cannot be read.
-
getRef
Description copied from class:RefCursorGet reference at the current position. -
close
public void close()Description copied from class:RefCursor- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classRefCursor
-